New to Telerik Document ProcessingStart a free 30-day trial

Represents a rectangular range of cell references with absolute or relative addressing, used in formulas to reference contiguous cell areas.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Model

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

C#
public class CellReferenceRange

Inheritance: objectCellReferenceRange

Methods

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()

Properties

Gets the number of columns spanned by the reference range.

C#
public int ColumnsCount { get; }
Property Value:

The columns count.

Gets the top-left cell reference of the range.

C#
public CellReference FromCellReference { get; }
Property Value:

The start cell reference.

Gets whether the reference range lies within valid worksheet boundaries.

C#
public bool IsInRange { get; }
Property Value:

The value indicating whether the range is within the valid boundaries.

Gets the number of rows spanned by the reference range.

C#
public int RowsCount { get; }
Property Value:

The rows count.

Gets the bottom-right cell reference of the range.

C#
public CellReference ToCellReference { get; }
Property Value:

The end cell reference.

Gets the worksheet to which this cell reference range belongs.

C#
public Worksheet Worksheet { get; }
Property Value:

The worksheet.

Extension Methods