New to Telerik Document ProcessingStart a free 30-day trial

A collection of cell ranges that automatically updates stored ranges when rows or columns are inserted or removed from the worksheet.

Definition

Methods

Adds a cell range to the collection.

C#
protected virtual void Add(CellRange cellRange)
Parameters:cellRangeCellRange

The cell range.

Returns an enumerator that iterates through the collection.

C#
public IEnumerator<CellRange> GetEnumerator()
Returns:

IEnumerator<CellRange>

A IEnumerator<T> that can be used to iterate through the collection.

Implements: IEnumerable<CellRange>.GetEnumerator()

Removes a cell range from the collection.

C#
protected virtual void Remove(CellRange cellRange)
Parameters:cellRangeCellRange

The cell range.

Replaces an old range with a new range after worksheet insert or remove operations.

C#
protected override void TranslateRange(CellRange oldRange, CellRange newRange)
Parameters:oldRangeCellRange

The old range.

newRangeCellRange

The new range.

Overrides: CellRangeInsertedOrRemovedAwareCollectionBase.TranslateRange(CellRange, CellRange)

Properties

Gets the cell ranges.

C#
protected override ICollection<CellRange> CellRanges { get; }
Property Value:

The cell ranges.

Overrides: CellRangeInsertedOrRemovedAwareCollectionBase.CellRanges

Gets the count.

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

The count.