New to Telerik Document ProcessingStart a free 30-day trial

A dictionary-backed collection mapping cell ranges to elements, automatically updating ranges when worksheet structure changes.

Definition

Methods

Adds an element associated with the specified cell range to the collection.

C#
protected abstract T Add(CellRange cellRange, T element)
Parameters:cellRangeCellRange

The cell range.

elementT

The element.

Returns:

T

Returns an enumerator that iterates through the collection.

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

IEnumerator<T>

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

Implements: IEnumerable<T>.GetEnumerator()

Removes the element associated with the specified cell range from the collection.

C#
protected abstract bool Remove(CellRange cellRange)
Parameters:cellRangeCellRange

The cell range.

Returns:

bool

Translates the range.

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.

Gets the elements.

C#
protected IDictionary<CellRange, T> Elements { get; }
Property Value:

The elements.

Gets the worksheet.

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

The worksheet.