Resets any indentation, causing new line writes to start at the first character position.
- Getting started
- Tutorial - Model driven basics
- Tutorial - Full stack Angular application
- Fundamentals
- How-to
- Modeler
- Reference
TextWriter interface
Represents a writer that can write a sequential series of characters.
Attributes
Name | Type | Description |
---|---|---|
endOfLineString | string | Gets or sets the end of line string. The default value is platform dependent. |
indentString | string | Gets or sets the indent string. The default value is a '\t' (tab character). |
Operations
Name | Returns | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
clearIndent()TextWriter.clearIndentX | this | Resets any indentation, causing new line writes to start at the first character position. | ||||||||||||
decreaseIndent()TextWriter.decreaseIndentXDecreases the current indent, which is prefixed to each line of the output. Return valueType: this | this | Decreases the current indent, which is prefixed to each line of the output. | ||||||||||||
increaseIndent()TextWriter.increaseIndentXIncreases the current indent, which is prefixed to each line of the output. Return valueType: this | this | Increases the current indent, which is prefixed to each line of the output. | ||||||||||||
write(value)TextWriter.writeXWrites a string value to the output. Parameters
Return valueType: this | this | Writes a string value to the output. | ||||||||||||
writeEndOfLine(value)TextWriter.writeEndOfLineXWrites the endOfLineString to the output. Parameters
Return valueType: this | this | Writes the endOfLineString to the output. | ||||||||||||
writeFile(path, encoding)TextWriter.writeFileXWrites the contents of the specified file to the output. Parameters
Return valueType: this | this | Writes the contents of the specified file to the output. | ||||||||||||
writeFileRegion(regionName, path, encoding)TextWriter.writeFileRegionXWrites the contents of the specified file region to the output. Parameters
Return valueType: boolean | boolean | Writes the contents of the specified file region to the output. | ||||||||||||
writeIndent()TextWriter.writeIndentXWrites the current indentString to the output. Return valueType: this | this | Writes the current indentString to the output. | ||||||||||||
writeLine(value)TextWriter.writeLineXWrites a new line to the output. The line is indented automatically. The line is ended with the endOfLineString. Parameters
Return valueType: this | this | Writes a new line to the output. The line is indented automatically. The line is ended with the endOfLineString. | ||||||||||||
writeLineIndented(value)TextWriter.writeLineIndentedXWrites a new line to the output while temporarily increasing the indent. The line is ended with the endOfLineString. Parameters
Return valueType: this | this | Writes a new line to the output while temporarily increasing the indent. The line is ended with the endOfLineString. | ||||||||||||
writeLines(values, delimiter)TextWriter.writeLinesXWrites a collection of lines to the output. Each line is indented automatically and ended with the endOfLineString. Parameters
Return valueType: this | this | Writes a collection of lines to the output. Each line is indented automatically and ended with the endOfLineString. | ||||||||||||
writeWhiteSpace()TextWriter.writeWhiteSpaceXWrites a single whitespace character to the output. Return valueType: this | this | Writes a single whitespace character to the output. |