Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Sealed class: RT.Util.CuteTag

Summary

Represents a node in the CuteML parse tree that corresponds to a CuteML tag or the top-level node.

Constructors

CuteTag(char? tag, string attribute, int index)
Constructs a new CuteML parse-tree node that represents a CuteML tag.

Instance methods

IEnumerable<ConsoleColoredString>
ToConsoleColoredStrings(int wrapWidth = 2147483647, int hangingIndent = 0)
Generates a sequence of ConsoleColoredStrings from a CuteML parse tree by word-wrapping the output at a specified character width. (see also remarks)
string
  • Overrides: object.ToString()
Converts the CuteML parse tree back into CuteML mark-up.
string
ToString(bool excludeSyntax)
Gets the text of this node and/or sub-nodes concatenated into one string.
objectReturns an XML representation of this CuteML node.

Instance properties

stringThe attribute data associated with the tag, or null if no attribute data was specified.
ReadOnlyCollection<CuteNode>The children of this node.
boolDetermines whether this node contains any textual content.
intThe index in the original string where this node starts.
CuteTagGets a reference to the parent node of this node. The root node is the only one for which this property is null.
char?The character that constitutes the tag name (e.g. *), or null if this is the top-level node.