CodeWriter Methods |
The CodeWriter type exposes the following members.
Name | Description | |
---|---|---|
BeginAlignment |
Begin the association of alignment information with a code object.
| |
BeginIndentOnNewLine |
Begin a section during which any newline should be indented an extra level.
| |
BeginIndentOnNewLineRelativeToCurrentOffset |
Begin a section during which any newline should be indented relative to the current offset.
| |
BeginIndentOnNewLineRelativeToLastIndent |
Begin a section during which any newline should be indented relative to the last indented offset.
| |
BeginIndentOnNewLineRelativeToParentOffset |
Begin a section during which any newline should be indented relative to the parent object offset.
| |
BeginOutdentOnNewLine |
Begin a section during which any newline should be outdented by a certain amount, or to a certain offset.
| |
Dispose |
Dispose the object.
| |
EndAlignment |
End the association of alignment information with a code object.
| |
EndIndentation |
End a section during which any newline should be indented an extra level.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
Flush |
Flush any pending data.
| |
FlushPendingEOLComments | ||
GetColumnWidth |
Get the column width associated with the specified CodeObject.
| |
GetColumnWidths |
Get any column widths associated with the specified CodeObject.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetIndentOffset |
Get the indentation offset of the specified code object.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SetParentOffset |
Set the indent offset of the parent object.
| |
ToString |
Convert all written data to a string.
(Overrides ObjectToString.) | |
Write |
Write the specified text.
| |
WriteIdentifier |
Write an identifier, prefixing with '@' if it happens to be a keyword.
| |
WriteLine |
Write optional text followed by a newline.
| |
WriteLines |
Write the specified number of newlines.
| |
WriteList |
Write a list of CodeObjects.
| |
WriteName |
Render a name, hiding any 'Attribute' suffix if it's an attribute name.
| |
WritePendingEOLComment |
Write a pending EOL comment, to be flushed later once it's known if anything follows it on the same line.
|