Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

public int BracketsCount { get; set; }

#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.

#Implements

See Also