Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Sealed class: RT.Util.EggsText

Summary

Represents a node in the EggsML parse tree that corresponds to a piece of text.

Constructors

EggsText(string text, int index = 0)
Constructs a new EggsML text node.

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

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.
stringThe text contained in this node.