[]
Represents a name node in the syntax tree.
A NameNode stores the short name together with optional worksheet
scope information and an optional WorkbookReference for external workbook
references. Use this class to represent parsed names such as a workbook-scoped
or worksheet-scoped name in a formula expression tree.
public class NameNode : TerminalNode, ICloneable
Public Class NameNode
Inherits TerminalNode
Implements ICloneable
WorkbookReference workbookRef = WorkbookReference.FromName("BuildingSales");
NameNode nameNode = new NameNode("RawData", workbookRef, "JanIn2021", null);
nameNode.LastWorksheetName = "DecIn2021";
| Name | Description |
|---|---|
| NameNode(string) | Creates a new
This constructor forwards |
| NameNode(string, WorkbookReference, string, string) | Creates a new NameNode from a range of sheets of the specified workbook. |
| NameNode(string, string, string) | Creates a new
This constructor forwards |
| Name | Description |
|---|---|
| LastWorksheetName | Gets or sets the name of the last worksheet in the range. This property stores the ending worksheet name when this NameNode represents a name scoped to a range of worksheets. |
| Name | Gets or sets the short name. |
| Workbook | Gets or sets the external workbook reference.
This property stores the WorkbookReference associated with this |
| WorksheetName | Gets or sets the worksheet of the name. This property stores the starting worksheet name for a worksheet-scoped or 3D name. |