Creates a writer that writes content starting at offset "start" in the document. <code>start</code> and <code>length</code> can be set to specify partial lines.
Closes the writer. Once closed no more content can be written. <b>NOTE:</b> <code>toString()</code> is not guaranteed to return a valid string unless the writer is closed.
Returns the number of characters to write. @return the integer number of characters to write
Returns the offset where writing starts. 0 based from the start of the widget text. Used to write partial lines. @return the integer offset where writing starts
Returns whether the writer is closed. @return a bool specifying whether or not the writer is closed
Returns the string. <code>close()</code> must be called before <code>toString()</code> is guaranteed to return a valid string.
Appends the given string to the data.
Inserts the given string to the data at the specified offset. <p> Do nothing if "offset" is < 0 or > getCharCount() </p>
Appends the given int to the data.
Appends the given character to the data.
Appends the specified line text to the data.
Appends the specified line delimiter to the data.
The <code>TextWriter</code> class is used to write widget content to a string. Whole and partial lines and line breaks can be written. To write partial lines, specify the start and length of the desired segment during object creation. <p> </b>NOTE:</b> <code>toString()</code> is guaranteed to return a valid string only after close() has been called. </p>