[]
Returns the formula text represented by this syntax tree.
This method returns the same result as calling ToString(UnParseContext) with the default unparse context. If this syntax tree has no root node, an empty string is returned.
public override string ToString()
Public Overrides Function ToString() As String
| Type | Description |
|---|---|
| string | A |
string formula = "SUM(A1:A3)+B1";
FormulaSyntaxTree syntaxTree = FormulaSyntaxTree.Parse(formula);
string formulaText = syntaxTree.ToString();
Returns the text for this formula, optionally specifies the formatting behavior.
public string ToString(UnParseContext context)
Public Function ToString(context As UnParseContext) As String
| Type | Name | Description |
|---|---|---|
| UnParseContext | context | An UnParseContext that specifies row, column and R1C1 reference style. |
| Type | Description |
|---|---|
| string | A string containing the formula. |