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:
C#
public abstract class CellRangeInsertedOrRemovedAwareCollectionBase
Inheritance: objectCellRangeInsertedOrRemovedAwareCollectionBase
Derived Classes:
Properties
CellRanges
ICollection<CellRange>
Gets the cell ranges.
C#
protected abstract ICollection<CellRange> CellRanges { get; }
The cell ranges.
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.
C#
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.
C#
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.