Class CellIndex
Identifies a specific cell by its row and column indices within a worksheet.
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Model
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public class CellIndex : CellIndexBase, IComparable<CellIndexBase>
Constructors
CellIndex(Int32, Int32)
Initializes a new CellIndex with the specified row and column indices.
Declaration
public CellIndex(int rowIndex, int columnIndex)
Parameters
|
System.Int32
rowIndex
Index of the row. |
|
System.Int32
columnIndex
Index of the column. |
Properties
ColumnIndex
Gets the zero-based column index of this cell.
Declaration
public override int ColumnIndex { get; }
Property Value
|
System.Int32
The index of the column. |
Overrides
RowIndex
Gets the zero-based row index of this cell.
Declaration
public override int RowIndex { get; }
Property Value
|
System.Int32
The index of the row. |
Overrides
Methods
Offset(Int32, Int32)
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
public CellIndex Offset(int rowOffset, int columnOffset)
Parameters
|
System.Int32
rowOffset
The row offset. |
|
System.Int32
columnOffset
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
public long ToNumber()
Returns
|
System.Int64
A numeric representation of the current index. |
ToString()
Returns a System.String that represents the current System.Object.
Declaration
public override string ToString()
Returns
|
System.String
A System.String that represents the current System.Object. |