CodeWriter Properties |
The CodeWriter type exposes the following members.
Name | Description | |
---|---|---|
AlignmentStateStack |
A stack of CodeWriterAlignmentStates.
| |
ColumnNumber |
The current column number (1 to N).
| |
IndentOffset |
Get or set the current indent offset (0 to N).
| |
IsGenerated |
True if the code being rendered is generated (such as a generated '.g.cs' file). Code cleanup settings will be ignored.
| |
LineNumber |
The current line number (1 to N).
| |
NeedsNewLine |
True if a newline is required before any other text, such as if a compiler directive was just emitted
(used to force a newline before a terminating ';' on an expression with a compiler directive at the end).
| |
NewLine |
Get or set the string used to create new lines (LF or CR/LF).
|