TemplateNode Class |
Namespace: NetQuarry
The TemplateNode type exposes the following members.
Name | Description | |
---|---|---|
TemplateNode(String, Boolean) |
Standard constructor.
| |
TemplateNode(String, Boolean, TemplateNodeType) |
Full constructor.
|
Name | Description | |
---|---|---|
CharNumber |
Gets/sets the character number in the LineNumber within the template on which the node text starts.
| |
FieldKey |
Gets the Key referenced by this node.
This is generally only meaningful on nodes where IsFieldReference is true.
One exception to this is for Template nodes where the FieldKey
is the node's inner template name.
| |
IsFieldReference |
Gets whether or not this node is a field reference that requires resolution.
| |
LineNumber |
Gets/sets the line number within the template on which the node text starts.
The CharNumber identifies the starting character within that line.
| |
NameValues |
Gets any name/value pairs associated with this node. Currently this applies to Template nodes only.
When applying an inner template replacement on a template, the inner template is expanded using the outer template's name/value pairs
PLUS any note-specific name/value pairs (with the node-specific values taking precedence).
|
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Parse |
Parse this node. Currently only applies to Template nodes which require parsing to extract template name
and possible name/value pairs.
| |
Replace |
Replaces the content in the node with the text required.
| |
ToString | (Inherited from Object.) |
Name | Description | |
---|---|---|
IsEscaped |
Determines if the content to be replaced in the node is assumed to have already been escaped or not.
If true, no further escapement should be performed, if false, the content should be escaped for HTML prior to use.
A more accurate name for this property might have been IsAlreadyEscaped | |
MarkerPrefixChars |
The set of template node marker characters, from TemplateNodeMarker.
| |
MarkerText |
The marker text that the Node references. Typically this is a field key with optional leading flag character.
| |
NodeType |
The Node type.
| |
Text |
Text in the node.
|
Name | Description | |
---|---|---|
EqualValue |
Determines if the object value is equal to another object. If the two objects are null, then this returns true.
There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways).
If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.) |