Class
CellIndexBase

Abstract base for cell index and position classes, providing row and column coordinates with comparison and equality operations.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Model

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

cs-api-definition
public abstract class CellIndexBase : IComparable<CellIndexBase>

Inheritance: objectCellIndexBase

Derived Classes: CellPositionCellIndex

Implements: IComparable<CellIndexBase>

Constructors

CellIndexBase()

Initializes a new CellIndexBase for derived cell index types.

Declaration

cs-api-definition
protected CellIndexBase()

Properties

ColumnIndex

Gets the zero-based column index of the cell.

Declaration

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

Property Value

int

The index of the column.

RowIndex

Gets the zero-based row index of the cell.

Declaration

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

Property Value

int

The index of the row.

Methods

CompareTo(CellIndexBase)

Compares this cell index to another and returns a value indicating their relative order (row-major, then column).

Declaration

cs-api-definition
public int CompareTo(CellIndexBase other)

Parameters

other

CellIndexBase

The other.

Returns

int

Implements IComparable<CellIndexBase>.CompareTo(CellIndexBase)

Equals(object)

Determines whether the specified object is equal to the current object.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

The object to compare with the current object.

Returns

bool

True if the specified object is equal to the current object; otherwise, false.

Overrides object.Equals(object)

GetHashCode()

Serves as a hash function for a particular type.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

Overrides object.GetHashCode()

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 object.ToString()

Operators

operator !=(CellIndexBase, CellIndexBase)

Implements the not equals operator.

Declaration

cs-api-definition
public static bool operator !=(CellIndexBase left, CellIndexBase right)

Parameters

left

CellIndexBase

The left value.

right

CellIndexBase

The right value.

Returns

bool

The result of the operator.

operator <(CellIndexBase, CellIndexBase)

Implements the less operator.

Declaration

cs-api-definition
public static bool operator <(CellIndexBase left, CellIndexBase right)

Parameters

left

CellIndexBase

The left value.

right

CellIndexBase

The right value.

Returns

bool

The result of the operator.

operator <=(CellIndexBase, CellIndexBase)

Implements the less or equal operator.

Declaration

cs-api-definition
public static bool operator <=(CellIndexBase left, CellIndexBase right)

Parameters

left

CellIndexBase

The left value.

right

CellIndexBase

The right value.

Returns

bool

The result of the operator.

operator ==(CellIndexBase, CellIndexBase)

Implements the equals operator.

Declaration

cs-api-definition
public static bool operator ==(CellIndexBase left, CellIndexBase right)

Parameters

left

CellIndexBase

The left value.

right

CellIndexBase

The right value.

Returns

bool

The result of the operator.

operator >(CellIndexBase, CellIndexBase)

Implements the greater operator.

Declaration

cs-api-definition
public static bool operator >(CellIndexBase left, CellIndexBase right)

Parameters

left

CellIndexBase

The left value.

right

CellIndexBase

The right value.

Returns

bool

The result of the operator.

operator >=(CellIndexBase, CellIndexBase)

Implements the greater or equal operator.

Declaration

cs-api-definition
public static bool operator >=(CellIndexBase left, CellIndexBase right)

Parameters

left

CellIndexBase

The left value.

right

CellIndexBase

The right value.

Returns

bool

The result of the operator.