Skip to main content
All docs
V25.1
  • Row

    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.1.Core.dll

    NuGet Package: DevExpress.Spreadsheet.Core

    Declaration

    bool IsTopLeftCellInDynamicArrayFormulaRange { get; }

    Property Value

    Type Description
    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