[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Expressions.FormulaSyntaxTree

Class FormulaSyntaxTree

Namespace
GrapeCity.Documents.Excel.Expressions
Assembly
GcDocs.Excel.dll

Represents a formula.

public class FormulaSyntaxTree : ICloneable
Inheritance
object
FormulaSyntaxTree
Implements
System.ICloneable
Inherited Members
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
object.MemberwiseClone()

Constructors

FormulaSyntaxTree()

Initializes a new instance of the FormulaSyntaxTree class.

public FormulaSyntaxTree()

Properties

Root

Gets the root element of the syntax tree for this formula.

public SyntaxNode Root { get; set; }

Property Value

SyntaxNode

The root SyntaxNode of the formula syntax tree.

Methods

Clone()

Creates a copy of the FormulaSyntaxTree instance.

public FormulaSyntaxTree Clone()

Returns

FormulaSyntaxTree

A copy of the FormulaSyntaxTree instance.

Equals(object)

Checks whether the FormulaSyntaxTree equal to another.

public override bool Equals(object obj)

Parameters

obj object

Another syntax tree.

Returns

bool

Whether the tree equals to the specified node.

GetHashCode()

This object doesn't support getting hash code, because all fields are mutable.

public override int GetHashCode()

Returns

int

The hash code of the current type.

Parse(string, ParseContext)

Creates a new FormulaSyntaxTree from a string.

public static FormulaSyntaxTree Parse(string text, ParseContext context)

Parameters

text string

A string that contains formula.

context ParseContext

A ParseContext that specifies base row, base column and R1C1 reference style.

Returns

FormulaSyntaxTree

A FormulaSyntaxTree populated from the string that contains formula.

Parse(string)

Creates a new FormulaSyntaxTree from a string.

public static FormulaSyntaxTree Parse(string text)

Parameters

text string

A string that contains formula.

Returns

FormulaSyntaxTree

A FormulaSyntaxTree populated from the string that contains formula.

ToString()

Returns the text for this formula.

public override string ToString()

Returns

string

A string containing the formula.

ToString(UnParseContext)

Returns the text for this formula, optionally specifies the formatting behavior.

public string ToString(UnParseContext context)

Parameters

context UnParseContext

An UnParseContext that specifies row, column and R1C1 reference style.

Returns

string

A string containing the formula.