New to Telerik Document ProcessingStart a free 30-day trial

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:

C#
public abstract class CellIndexBase : IComparable<CellIndexBase>

Inheritance: objectCellIndexBase

Derived Classes: CellIndex

Implements: IComparable<CellIndexBase>

Constructors

Initializes a new CellIndexBase for derived cell index types.

C#
protected CellIndexBase()

Methods

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

C#
public int CompareTo(CellIndexBase other)
Parameters:otherCellIndexBase

The other.

Returns:

int

Implements: IComparable<CellIndexBase>.CompareTo(CellIndexBase)

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

C#
public override bool Equals(object obj)
Parameters:objobject

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)

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: object.GetHashCode()

Returns a string that represents the current object.

C#
public override string ToString()
Returns:

string

A string that represents the current object.

Overrides: object.ToString()

Operators

Implements the not equals operator.

C#
public static bool operator !=(CellIndexBase left, CellIndexBase right)
Parameters:leftCellIndexBase

The left value.

rightCellIndexBase

The right value.

Returns:

bool

The result of the operator.

Implements the less operator.

C#
public static bool operator <(CellIndexBase left, CellIndexBase right)
Parameters:leftCellIndexBase

The left value.

rightCellIndexBase

The right value.

Returns:

bool

The result of the operator.

Implements the less or equal operator.

C#
public static bool operator <=(CellIndexBase left, CellIndexBase right)
Parameters:leftCellIndexBase

The left value.

rightCellIndexBase

The right value.

Returns:

bool

The result of the operator.

Implements the equals operator.

C#
public static bool operator ==(CellIndexBase left, CellIndexBase right)
Parameters:leftCellIndexBase

The left value.

rightCellIndexBase

The right value.

Returns:

bool

The result of the operator.

Implements the greater operator.

C#
public static bool operator >(CellIndexBase left, CellIndexBase right)
Parameters:leftCellIndexBase

The left value.

rightCellIndexBase

The right value.

Returns:

bool

The result of the operator.

Implements the greater or equal operator.

C#
public static bool operator >=(CellIndexBase left, CellIndexBase right)
Parameters:leftCellIndexBase

The left value.

rightCellIndexBase

The right value.

Returns:

bool

The result of the operator.

Properties

Gets the zero-based column index of the cell.

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

The index of the column.

Gets the zero-based row index of the cell.

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

The index of the row.