Class
CellRangeInsertedOrRemovedAwareCollectionBase

Abstract base for collections that track and update cell ranges when worksheet structure changes due to insert or remove operations.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Model

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

cs-api-definition
public abstract class CellRangeInsertedOrRemovedAwareCollectionBase

Inheritance: objectCellRangeInsertedOrRemovedAwareCollectionBase

Derived Classes: CellRangeInsertedOrRemovedAwareCollectionCellRangeInsertedOrRemovedAwareCollection<T>CellRangeInsertedOrRemovedAwareOrderedCollectionPrintTitles

Properties

CellRanges

Gets the cell ranges.

Declaration

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

Property Value

ICollection<CellRange>

The cell ranges.

Cells

Gets or sets the cells.

Declaration

cs-api-definition
protected Cells Cells { get; set; }

Property Value

Cells

The cells.

Methods

CanInsertOrRemove(ShiftType, CellRange, CellRange)

Determines whether this instance can insert or remove the selected range depending on some existing range and a given shift type.

Declaration

cs-api-definition
protected virtual bool CanInsertOrRemove(ShiftType shiftType, CellRange range, CellRange selectedRange)

Parameters

shiftType

ShiftType

Type of the shift.

range

CellRange

The range.

selectedRange

CellRange

The selected range.

Returns

bool

True if the selected range can be inserted or removed.

OnAfterTranslation(Dictionary<CellRange, CellRange>, CellRange, ShiftType)

Called after translation.

Declaration

cs-api-definition
protected virtual void OnAfterTranslation(Dictionary<CellRange, CellRange> oldAndNewTranslatedRangesPositions, CellRange rangeToInsertOrRemove, ShiftType shiftType)

Parameters

oldAndNewTranslatedRangesPositions

Dictionary<CellRange, CellRange>

The old and new translated ranges positions.

rangeToInsertOrRemove

CellRange

The range to insert or remove.

shiftType

ShiftType

Type of the shift.

OnBeforeTranslation(Dictionary<CellRange, CellRange>, CellRange, ShiftType)

Called before translation.

Declaration

cs-api-definition
protected virtual void OnBeforeTranslation(Dictionary<CellRange, CellRange> oldAndNewTranslatedRangesPositions, CellRange rangeToInsertOrRemove, ShiftType shiftType)

Parameters

oldAndNewTranslatedRangesPositions

Dictionary<CellRange, CellRange>

The old and new translated ranges positions.

rangeToInsertOrRemove

CellRange

The range to insert or remove.

shiftType

ShiftType

Type of the shift.

ShouldTranslateLeftRight(RangeType)

Checks if should translate left or right.

Declaration

cs-api-definition
protected virtual bool ShouldTranslateLeftRight(RangeType rangeType)

Parameters

rangeType

RangeType

Type of the range.

Returns

bool

A value indicating whether should translate left or right.

ShouldTranslateUpDown(RangeType)

Checks if should translate up or down.

Declaration

cs-api-definition
protected virtual bool ShouldTranslateUpDown(RangeType rangeType)

Parameters

rangeType

RangeType

Type of the range.

Returns

bool

A value indicating whether should translate up or down.

TranslateRange(CellRange, CellRange)

Translates the range.

Declaration

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

Parameters

oldRange

CellRange

The old range.

newRange

CellRange

The new range.

TranslateRanges(Dictionary<CellRange, CellRange>)

Translates the ranges.

Declaration

cs-api-definition
protected virtual void TranslateRanges(Dictionary<CellRange, CellRange> oldAndNewTranslatedRangesPositions)

Parameters

oldAndNewTranslatedRangesPositions

Dictionary<CellRange, CellRange>

The old and new translated ranges positions.