Class
CellRangeInsertedOrRemovedAwareOrderedCollection

A list-backed collection of cell ranges that preserves insertion order and updates ranges when worksheet structure changes.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Model

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

cs-api-definition
public abstract class CellRangeInsertedOrRemovedAwareOrderedCollection : CellRangeInsertedOrRemovedAwareCollectionBase

Inheritance: objectCellRangeInsertedOrRemovedAwareCollectionBaseCellRangeInsertedOrRemovedAwareOrderedCollection

Derived Classes: PrintArea

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

Constructors

CellRangeInsertedOrRemovedAwareOrderedCollection(Cells)

Initializes a new instance of the CellRangeInsertedOrRemovedAwareOrderedCollection class.

Declaration

cs-api-definition
protected CellRangeInsertedOrRemovedAwareOrderedCollection(Cells cells)

Parameters

cells

Cells

The 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

RangesList

Gets the ranges list.

Declaration

cs-api-definition
protected List<CellRange> RangesList { get; }

Property Value

List<CellRange>

The ranges list.

Methods

Insert(int, CellRange)

Inserts a cell range at the specified index in the ordered list.

Declaration

cs-api-definition
protected virtual void Insert(int index, CellRange range)

Parameters

index

int

The index.

range

CellRange

The range.

RemoveCellRangeAt(int)

Removes the cell range at the specified index from the ordered list.

Declaration

cs-api-definition
protected virtual void RemoveCellRangeAt(int index)

Parameters

index

int

The index.

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)