Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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