[]
Gets the immediate child nodes of this non-terminal node.
Use this property to inspect the nested structure of a composite formula expression,
such as a function call, operator expression, or parenthesized expression. The returned
list is this node's child collection, and its elements are not null.
public override IList<SyntaxNode> Children { get; }
Public Overrides ReadOnly Property Children As IList(Of SyntaxNode)
| Type | Description |
|---|---|
| IList<SyntaxNode> | A list containing the immediate child nodes of this non-terminal node. |
SyntaxNode node = SyntaxNode.Parse("SUM(A1,B1)");
NonTerminalNode nonTerminalNode = (NonTerminalNode) node;
IList<SyntaxNode> children = nonTerminalNode.Children;
SyntaxNode firstChild = children[0];
string firstArgument = firstChild.ToString();