Class CellRangeInsertedOrRemovedAwareCollectionBase
Represents base for the CellRangeInsertedOrRemovedAwareCollection class.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Model
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public abstract class CellRangeInsertedOrRemovedAwareCollectionBase
Properties
CellRanges
Gets the cell ranges.
Declaration
protected abstract ICollection<CellRange> CellRanges { get; }
Property Value
System. The cell ranges. |
Cells
Gets or sets the cells.
Declaration
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
protected virtual bool CanInsertOrRemove(ShiftType shiftType, CellRange range, CellRange selectedRange)
Parameters
Shift Type of the shift. |
Cell The range. |
Cell The selected range. |
Returns
System. 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
OnBeforeTranslation(Dictionary<CellRange, CellRange>, CellRange, ShiftType)
Called before translation.
Declaration
protected virtual void OnBeforeTranslation(Dictionary<CellRange, CellRange> oldAndNewTranslatedRangesPositions, CellRange rangeToInsertOrRemove, ShiftType shiftType)
Parameters
ShouldTranslateLeftRight(RangeType)
Checks if should translate left or right.
Declaration
protected virtual bool ShouldTranslateLeftRight(RangeType rangeType)
Parameters
Range Type of the range. |
Returns
System. A value indicating whether should translate left or right. |
ShouldTranslateUpDown(RangeType)
Checks if should translate up or down.
Declaration
protected virtual bool ShouldTranslateUpDown(RangeType rangeType)
Parameters
Range Type of the range. |
Returns
System. A value indicating whether should translate up or down. |
TranslateRange(CellRange, CellRange)
Translates the range.
Declaration
protected abstract void TranslateRange(CellRange oldRange, CellRange newRange)