.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

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.v19.2.Core.dll

Declaration

public int BracketsCount { get; set; }
Public Property BracketsCount As Integer
public int BracketsCount { get; set; }
Public Property BracketsCount As Integer
public int BracketsCount { get; set; }
Public Property BracketsCount As Integer

Property Value

Type Description
Int32

An integer that is the number of pairs of parentheses.

Property Value

Type Description
Int32

An integer that is the number of pairs of parentheses.

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.

See Also