[]
Creates a new TableItemNode that represents a table structured reference for a single column.
Use this constructor to specify the table name, the referenced table item type, and the referenced column name for the structured reference.
public TableItemNode(string tableName, TableItemType itemType, string columnName)
Public Sub New(tableName As String, itemType As TableItemType, columnName As String)
| Type | Name | Description |
|---|---|---|
| string | tableName | The name of the table. |
| TableItemType | itemType | The table item type represented by the structured reference. |
| string | columnName | The name of the referenced column. |
GrapeCity.Documents.Excel.Expressions.TableItemNode tableItem = new GrapeCity.Documents.Excel.Expressions.TableItemNode("DeptSales", TableItemType.Headers, "Amount");
FormulaSyntaxTree syntaxTree = new FormulaSyntaxTree();
syntaxTree.Root = tableItem;
string formulaText = syntaxTree.ToString();
Creates a new TableItemNode from range of columns of a table.
public TableItemNode(string tableName, TableItemType itemType, string columnFrom, string columnTo)
Public Sub New(tableName As String, itemType As TableItemType, columnFrom As String, columnTo As String)
| Type | Name | Description |
|---|---|---|
| string | tableName | The name of the table. |
| TableItemType | itemType | The part of the table. |
| string | columnFrom | The start column. |
| string | columnTo | The end column. |
GrapeCity.Documents.Excel.Expressions.TableItemNode tableItem = new GrapeCity.Documents.Excel.Expressions.TableItemNode(
"DeptSales",
GrapeCity.Documents.Excel.Expressions.TableItemType.Data,
"Amount",
"Discount"
);
FormulaSyntaxTree syntaxTree = new FormulaSyntaxTree();
syntaxTree.Root = tableItem;
string formulaText = syntaxTree.ToString();