Class
CellRangeInsertedOrRemovedAwareCollection

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

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Model

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

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

Inheritance: objectCellRangeInsertedOrRemovedAwareCollectionBaseCellRangeInsertedOrRemovedAwareCollection

Implements: IEnumerableIEnumerable<CellRange>

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.

Methods

Add(CellRange)

Adds a cell range to the collection.

Declaration

cs-api-definition
protected virtual void Add(CellRange cellRange)

Parameters

cellRange

CellRange

The cell range.

GetEnumerator()

Returns an enumerator that iterates through the collection.

Declaration

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

Returns

IEnumerator<CellRange>

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

Implements IEnumerable<CellRange>.GetEnumerator()

Remove(CellRange)

Removes a cell range from the collection.

Declaration

cs-api-definition
protected virtual void Remove(CellRange cellRange)

Parameters

cellRange

CellRange

The cell range.

TranslateRange(CellRange, CellRange)

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

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)