New to Telerik Document ProcessingStart a free 30-day trial

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:

C#
public class CellIndex : CellIndexBase, IComparable<CellIndexBase>

Inheritance: objectCellIndexBaseCellIndex

Implements: IComparable<CellIndexBase>

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

Constructors

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

C#
public CellIndex(int rowIndex, int columnIndex)
Parameters:rowIndexint

Index of the row.

columnIndexint

Index of the column.

Methods

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.

C#
public CellIndex Offset(int rowOffset, int columnOffset)
Parameters:rowOffsetint

The row offset.

columnOffsetint

The column offset.

Returns:

CellIndex

The new cell index.

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

C#
public long ToNumber()
Returns:

long

A numeric representation of the current index.

Returns a string that represents the current object.

C#
public override string ToString()
Returns:

string

A string that represents the current object.

Overrides: CellIndexBase.ToString()

Properties

Gets the zero-based column index of this cell.

C#
public override int ColumnIndex { get; }
Property Value:

The index of the column.

Overrides: CellIndexBase.ColumnIndex

Gets the zero-based row index of this cell.

C#
public override int RowIndex { get; }
Property Value:

The index of the row.

Overrides: CellIndexBase.RowIndex

Extension Methods