Skip to main content
Row

CellKey.CompareTo(CellKey) Method

Compares the current cell key with another and returns an integer that indicates whether the current cell is closer to the upper left position of the first worksheet in a workbook compared with another.

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

public int CompareTo(
    CellKey other
)

Parameters

Name Type Description
other CellKey

A CellKey object to compare with the current cell key.

Returns

Type Description
Int32

A value that indicates the relative position of the cells. If the value is -1, the current cell is closer to the upper left position of the first worksheet in a workbook than another. If the value is zero, the cell keys refer to the same cell. If the value is 1, the current cell is more distant from the upper left position of the first worksheet in a workbook compared with another.

Implements

See Also