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.Collections.Generic.ICollection<CellRange>
         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
| 
        ShiftType
        shiftType
         Type of the shift.  | 
    
| 
        CellRange
        range
         The range.  | 
    
| 
        CellRange
        selectedRange
         The selected range.  | 
    
Returns
| 
        System.Boolean
         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
| 
        System.Collections.Generic.Dictionary<CellRange, CellRange>
        oldAndNewTranslatedRangesPositions
         The old and new translated ranges positions.  | 
    
| 
        CellRange
        rangeToInsertOrRemove
         The range to insert or remove.  | 
    
| 
        ShiftType
        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
| 
        System.Collections.Generic.Dictionary<CellRange, CellRange>
        oldAndNewTranslatedRangesPositions
         The old and new translated ranges positions.  | 
    
| 
        CellRange
        rangeToInsertOrRemove
         The range to insert or remove.  | 
    
| 
        ShiftType
        shiftType
         Type of the shift.  | 
    
ShouldTranslateLeftRight(RangeType)
Checks if should translate left or right.
Declaration
protected virtual bool ShouldTranslateLeftRight(RangeType rangeType)
  Parameters
| 
        RangeType
        rangeType
         Type of the range.  | 
    
Returns
| 
        System.Boolean
         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
| 
        RangeType
        rangeType
         Type of the range.  | 
    
Returns
| 
        System.Boolean
         A value indicating whether should translate up or down.  | 
    
TranslateRange(CellRange, CellRange)
Translates the range.
Declaration
protected abstract void TranslateRange(CellRange oldRange, CellRange newRange)
  Parameters
| 
        CellRange
        oldRange
         The old range.  | 
    
| 
        CellRange
        newRange
         The new range.  | 
    
TranslateRanges(Dictionary<CellRange, CellRange>)
Translates the ranges.
Declaration
protected virtual void TranslateRanges(Dictionary<CellRange, CellRange> oldAndNewTranslatedRangesPositions)
  Parameters
| 
        System.Collections.Generic.Dictionary<CellRange, CellRange>
        oldAndNewTranslatedRangesPositions
         The old and new translated ranges positions.  |