Class
CellIndex

Identifies a specific cell by its row and column indices within a worksheet.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Model

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

cs-api-definition
public class CellIndex : CellIndexBase, IComparable<CellIndexBase>

Inheritance: objectCellIndexBaseCellIndex

Implements: IComparable<CellIndexBase>

Inherited Members CellIndexBase.Equals(object)CellIndexBase.GetHashCode()CellIndexBase.CompareTo(CellIndexBase)

Constructors

CellIndex(int, int)

Initializes a new CellIndex with the specified row and column indices.

Declaration

cs-api-definition
public CellIndex(int rowIndex, int columnIndex)

Parameters

rowIndex

int

Index of the row.

columnIndex

int

Index of the column.

Properties

ColumnIndex

Gets the zero-based column index of this cell.

Declaration

cs-api-definition
public override int ColumnIndex { get; }

Property Value

int

The index of the column.

Overrides CellIndexBase.ColumnIndex

RowIndex

Gets the zero-based row index of this cell.

Declaration

cs-api-definition
public override int RowIndex { get; }

Property Value

int

The index of the row.

Overrides CellIndexBase.RowIndex

Methods

Offset(int, int)

Creates a new cell index by adding the specified offsets to this cell's row and column, returning null if the result is out of bounds.

Declaration

cs-api-definition
public CellIndex Offset(int rowOffset, int columnOffset)

Parameters

rowOffset

int

The row offset.

columnOffset

int

The column offset.

Returns

CellIndex

The new cell index.

ToNumber()

Converts this cell index to a unique numeric representation for internal storage and comparison.

Declaration

cs-api-definition
public long ToNumber()

Returns

long

A numeric representation of the current index.

ToString()

Returns a string that represents the current object.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents the current object.

Overrides CellIndexBase.ToString()

Extension Methods