Class
CellRangeInsertedOrRemovedAwareCollection<T>

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

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Model

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Type Parameters:

T

Syntax:

cs-api-definition
public abstract class CellRangeInsertedOrRemovedAwareCollection<T> : CellRangeInsertedOrRemovedAwareCollectionBase, IEnumerable

Inheritance: objectCellRangeInsertedOrRemovedAwareCollectionBaseCellRangeInsertedOrRemovedAwareCollection<T>

Derived Classes: HyperlinkCollection

Implements: IEnumerable

Inherited Members CellRangeInsertedOrRemovedAwareCollectionBase.CanInsertOrRemove(ShiftType, CellRange, CellRange)CellRangeInsertedOrRemovedAwareCollectionBase.ShouldTranslateUpDown(RangeType)CellRangeInsertedOrRemovedAwareCollectionBase.ShouldTranslateLeftRight(RangeType)CellRangeInsertedOrRemovedAwareCollectionBase.TranslateRanges(Dictionary<CellRange, CellRange>)CellRangeInsertedOrRemovedAwareCollectionBase.OnBeforeTranslation(Dictionary<CellRange, CellRange>, CellRange, ShiftType)CellRangeInsertedOrRemovedAwareCollectionBase.OnAfterTranslation(Dictionary<CellRange, CellRange>, CellRange, ShiftType)CellRangeInsertedOrRemovedAwareCollectionBase.Cells

Properties

CellRanges

Gets the cell ranges.

Declaration

cs-api-definition
protected override ICollection<CellRange> CellRanges { get; }

Property Value

ICollection<CellRange>

The cell ranges.

Overrides CellRangeInsertedOrRemovedAwareCollectionBase.CellRanges

Count

Gets the count.

Declaration

cs-api-definition
public int Count { get; }

Property Value

int

The count.

Elements

Gets the elements.

Declaration

cs-api-definition
protected IDictionary<CellRange, T> Elements { get; }

Property Value

IDictionary<CellRange, T>

The elements.

Worksheet

Gets the worksheet.

Declaration

cs-api-definition
protected Worksheet Worksheet { get; }

Property Value

Worksheet

The worksheet.

Methods

Add(CellRange, T)

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

Declaration

cs-api-definition
protected abstract T Add(CellRange cellRange, T element)

Parameters

cellRange

CellRange

The cell range.

element

T

The element.

Returns

T

GetEnumerator()

Returns an enumerator that iterates through the collection.

Declaration

cs-api-definition
public IEnumerator<T> GetEnumerator()

Returns

IEnumerator<T>

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

Remove(CellRange)

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

Declaration

cs-api-definition
protected abstract bool Remove(CellRange cellRange)

Parameters

cellRange

CellRange

The cell range.

Returns

bool

TranslateRange(CellRange, CellRange)

Translates the range.

Declaration

cs-api-definition
protected override void TranslateRange(CellRange oldRange, CellRange newRange)

Parameters

oldRange

CellRange

The old range.

newRange

CellRange

The new range.

Overrides CellRangeInsertedOrRemovedAwareCollectionBase.TranslateRange(CellRange, CellRange)