[]
Represents a formula.
public class FormulaSyntaxTree : ICloneable
Initializes a new instance of the FormulaSyntaxTree class.
public FormulaSyntaxTree()
Gets the root element of the syntax tree for this formula.
public SyntaxNode Root { get; set; }
The root SyntaxNode of the formula syntax tree.
Creates a copy of the FormulaSyntaxTree instance.
public FormulaSyntaxTree Clone()
A copy of the FormulaSyntaxTree instance.
Checks whether the FormulaSyntaxTree equal to another.
public override bool Equals(object obj)
obj
objectAnother syntax tree.
Whether the tree equals to the specified node.
This object doesn't support getting hash code, because all fields are mutable.
public override int GetHashCode()
The hash code of the current type.
Creates a new FormulaSyntaxTree from a string.
public static FormulaSyntaxTree Parse(string text, ParseContext context)
text
stringA string that contains formula.
context
ParseContextA ParseContext that specifies base row, base column and R1C1 reference style.
A FormulaSyntaxTree populated from the string that contains formula.
Creates a new FormulaSyntaxTree from a string.
public static FormulaSyntaxTree Parse(string text)
text
stringA string that contains formula.
A FormulaSyntaxTree populated from the string that contains formula.
Returns the text for this formula.
public override string ToString()
A string containing the formula.
Returns the text for this formula, optionally specifies the formatting behavior.
public string ToString(UnParseContext context)
context
UnParseContextAn UnParseContext that specifies row, column and R1C1 reference style.
A string containing the formula.