Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Sealed class: RT.Util.EggsTag

Summary

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

Constructors

EggsTag(char? tag, int index)
Constructs a new EggsML parse-tree node that represents an EggsML tag.
EggsTag(IEnumerable<EggsNode> nodes)
Constructs a new top-level EggsML parse-tree node containing the specified sub-nodes.
EggsTag(char? tag, IEnumerable<EggsNode> nodes)
Constructs a new EggsML parse-tree node that represents an EggsML tag containing the specified sub-nodes.

Instance methods

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

Instance properties

ReadOnlyCollection<EggsNode>The children of this node.
boolDetermines whether this node contains any textual content.
intThe index in the original string where this node starts.
EggsTag Gets 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 used to open the tag (e.g. “[”), or null if this is the top-level node.