Skip to main content

CellArea(Int32, Int32, Int32, Int32) Constructor

Initializes a new instance of the CellArea class with the specified settings.

Namespace: DevExpress.Spreadsheet.Formulas

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

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

public CellArea(
    int leftColumnIndex,
    int topRowIndex,
    int rightColumnIndex,
    int bottomRowIndex
)

Parameters

Name Type Description
leftColumnIndex Int32

An integer that is the index of the leftmost column in the range which the CellArea represents.

topRowIndex Int32

An integer that is the index of the top row in the range which the CellArea represents.

rightColumnIndex Int32

An integer that is the index of the rightmost column in the range which the CellArea represents.

bottomRowIndex Int32

An integer that is the index of the bottom row in the range which the CellArea represents.

Remarks

The value is not validated after assignment. An incorrect value may result in an incorrect CellArea.ColumnCount or CellArea.RowCount property values. However, the references based on the cell area with incorrect settings may be valid due to internal normalization. The CellArea.ToString method, CellArea.TopLeft and CellArea.BottomRight properties always return correct, validated values.

See Also