Template Members
The Template type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Template(TextWriter, String, Assembly) |
Initializes the stream from the resource block of the specified assembly.
|
Methods
Name | Description | |
---|---|---|
AddReplacement |
Adds a replacement value for a token.
|
|
StrCmp |
Determines if the target exists in the string at the specified index.
|
|
Write(Char) |
Writes the text to the stream.
|
|
Write(String) |
Writes the text to the stream.
|
|
Write(String, Object) |
Formats and then writes the text to the stream.
|
|
Write(String, Object, Object) |
Formats and then writes the text to the stream.
|
|
Write(String, Object, Object, Object) |
Formats and then writes the text to the stream.
|
|
Write(String, array<Object>[]()[][]) |
Formats and then writes the text to the stream.
|
|
WriteLine(String) |
Writes the text to the stream followed by a new line.
|
|
WriteLine(String, Object) |
Formats and then writes the text to the stream followed by a new line.
|
|
WriteLine(String, Object, Object) |
Formats and then writes the text to the stream followed by a new line.
|
|
WriteLine(String, Object, Object, Object) |
Formats and then writes the text to the stream followed by a new line.
|
|
WriteLine(String, array<Object>[]()[][]) |
Formats and then writes the text to the stream followed by a new line.
|
|
WriteNextLine |
Writes a newline and then indents the text for the next line.
|
|
WriteTemplate(Context) |
Performs the substitutions specified in the template and writes it to the stream.
|
|
WriteTemplate(Object, String, String) |
Substitutes a multi-line template for a token.
|
|
WriteToken |
Substitutes simple text template for a token.
|
Properties
Name | Description | |
---|---|---|
Indent |
Returns enough whitespace to indent the current line properly.
|
|
IndentCount |
The number of levels to ident a the current line.
|
|
NewLine |
Returns the new line characters.
|
|
Replacements |
The table of tokens to replace.
|
|
TemplateEndAppendNewLineTag |
The tag that marks the end of a template body and is replaced by a new line.
|
|
TemplateEndTag |
The tag that marks the end of a template body.
|
|
Templates |
The templates to load.
|
|
TemplateStartTag |
The tag that marks the start of a template body.
|