TemplateBlock Class
Represents a block in a template.
public abstract class TemplateBlockConstructors
| Name | Description |
|---|---|
| TemplateBlock(Template, string, int) | Initializes a new instance of the TemplateBlock class. |
TemplateBlock(Template, string, int)
TemplateBlock.csProperties
| Name | Description |
|---|---|
| End | Gets the position where the block ends in the source template. |
| Index | Gets the index of this block in the template. |
| Span | Gets or sets the source span of the block in the source template. |
| Start | Gets the position where the block starts in the source template. |
| Template | Gets the template that contains this block. |
| Text | Gets the text content of the block. |
Gets the position where the block ends in the source template.
public TextPosition End { get; }Property value
Index
TemplateBlock.csSpan
TemplateBlock.csStart
TemplateBlock.csGets the position where the block starts in the source template.
public TextPosition Start { get; }Property value
Template
TemplateBlock.csText
TemplateBlock.csMethods
| Name | Description |
|---|---|
| BuildCode() | Builds the C# code for this block. |
| EscapeVerbatimString(string?) |