Expression.BracketsCount Property
Gets or sets the number of pairs of parentheses in which the expression is enclosed.
Namespace: DevExpress.Spreadsheet.Formulas
Assembly: DevExpress.Spreadsheet.v24.2.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
Declaration
Property Value
Type | Description |
---|---|
Int32 | An integer that is the number of pairs of parentheses. |
Remarks
The BracketsCount counts the number of pairs of parentheses enclosing the expression. For example, the expression “(A1+A2)” after parsing, transforms in an expression tree with two CellReferenceExpression nodes and one AdditionExpression. The AdditionExpression has a BracketsCount equal to 1, while two CellReferenceExpression are not enclosed in parentheses and have the BracketsCount equal to 0 .
The BracketsCount can be used to reconstruct a string expression from the parsed expression tree.