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:
public abstract class CellRangeInsertedOrRemovedAwareCollectionBase
Inheritance: objectCellRangeInsertedOrRemovedAwareCollectionBase
Derived Classes:
Methods
Determines whether this instance can insert or remove the selected range depending on some existing range and a given shift type.
Called after translation.
protected virtual void OnAfterTranslation(Dictionary<CellRange, CellRange> oldAndNewTranslatedRangesPositions, CellRange rangeToInsertOrRemove, ShiftType shiftType)
The old and new translated ranges positions.
rangeToInsertOrRemoveCellRangeThe range to insert or remove.
shiftTypeShiftTypeType of the shift.
Called before translation.
protected virtual void OnBeforeTranslation(Dictionary<CellRange, CellRange> oldAndNewTranslatedRangesPositions, CellRange rangeToInsertOrRemove, ShiftType shiftType)
The old and new translated ranges positions.
rangeToInsertOrRemoveCellRangeThe range to insert or remove.
shiftTypeShiftTypeType of the shift.
Translates the ranges.
protected virtual void TranslateRanges(Dictionary<CellRange, CellRange> oldAndNewTranslatedRangesPositions)
The old and new translated ranges positions.
Properties
Gets the cell ranges.
protected abstract ICollection<CellRange> CellRanges { get; }
The cell ranges.