ClassCellRangeInsertedOrRemovedAwareCollectionBase
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:
Properties
CellRanges
Gets the cell ranges.
Declaration
protected abstract ICollection<CellRange> CellRanges { get; }
Property Value
The cell ranges.
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
protected virtual bool CanInsertOrRemove(ShiftType shiftType, CellRange range, CellRange selectedRange)
Parameters
shiftType
Type of the shift.
range
The range.
selectedRange
The selected range.
Returns
True if the selected range can be inserted or removed.
OnAfterTranslation(Dictionary<CellRange, CellRange>, CellRange, ShiftType)
Called after translation.
Declaration
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
The range to insert or remove.
shiftType
Type of the shift.
OnBeforeTranslation(Dictionary<CellRange, CellRange>, CellRange, ShiftType)
Called before translation.
Declaration
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
The range to insert or remove.
shiftType
Type of the shift.
ShouldTranslateLeftRight(RangeType)
Checks if should translate left or right.
ShouldTranslateUpDown(RangeType)
Checks if should translate up or down.
TranslateRange(CellRange, CellRange)
Translates the range.
TranslateRanges(Dictionary<CellRange, CellRange>)
Translates the ranges.
Declaration
protected virtual void TranslateRanges(Dictionary<CellRange, CellRange> oldAndNewTranslatedRangesPositions)
Parameters
oldAndNewTranslatedRangesPositions
Dictionary<CellRange, CellRange>
The old and new translated ranges positions.