Back to Devexpress

Cell.IsTopLeftCellInDynamicArrayFormulaRange Property

officefileapi-devexpress-dot-spreadsheet-dot-cell-15603b3f.md

latest2.2 KB
Original Source

Cell.IsTopLeftCellInDynamicArrayFormulaRange Property

Indicates whether the current cell is the top left cell in the dynamic array formula range.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
bool IsTopLeftCellInDynamicArrayFormulaRange { get; }
vb
ReadOnly Property IsTopLeftCellInDynamicArrayFormulaRange As Boolean

Property Value

TypeDescription
Boolean

true if the current cell is the top left cell in the array formula range; otherwise, false.

|

Remarks

Use the IsTopLeftCellInArrayFormulaRange property to obtain the array formula for a cell.

Cells which belong to a dynamic array formula range behave differently from other cells. If a cell belongs to the array formula range, its value and formula are protected, so an attempt to modify cell data throws an exception. For all cells in the range except the top left cell, the CellRange.ArrayFormula and CellRange.Formula properties return an empty string.

Get the range of cells by the Cell.GetDynamicArrayFormulaRange method call. Loop through each cell and check the IsTopLeftCellInDynamicArrayFormulaRange property to find the top left cell. The value of the CellRange.DynamicArrayFormula property of this cell returns the formula string.

See Also

Cell Interface

Cell Members

DevExpress.Spreadsheet Namespace