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.v24.2.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
#Declaration
#Property Value
Type | Description |
---|---|
Boolean |
|
#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.