Class CellRangeInsertedOrRemovedAwareCollection<T>
A collection which can process the results of insertions and removals of cell ranges.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Model
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public abstract class CellRangeInsertedOrRemovedAwareCollection<T> : CellRangeInsertedOrRemovedAwareCollectionBase, IEnumerable<T>, IEnumerable
Type Parameters
T
|
Properties
CellRanges
Gets the cell ranges.
Declaration
protected override ICollection<CellRange> CellRanges { get; }
Property Value
System.Collections.Generic.ICollection<CellRange>
The cell ranges. |
Overrides
Count
Gets the count.
Declaration
public int Count { get; }
Property Value
System.Int32
The count. |
Elements
Gets the elements.
Declaration
protected IDictionary<CellRange, T> Elements { get; }
Property Value
System.Collections.Generic.IDictionary<CellRange, T>
The elements. |
Worksheet
Gets the worksheet.
Declaration
protected Worksheet Worksheet { get; }
Property Value
Worksheet
The worksheet. |
Methods
Add(CellRange, T)
Adds the specified element when cellRange is inserted.
Declaration
protected abstract T Add(CellRange cellRange, T element)
Parameters
CellRange
cellRange
The cell range. |
T
element
The element. |
Returns
T
|
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<T> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<T>
A System.Collections.Generic.IEnumerator<T> that can be used to iterate through the collection. |
Implements
Remove(CellRange)
Removes elements when cellRange is removed.
Declaration
protected abstract bool Remove(CellRange cellRange)
Parameters
CellRange
cellRange
The cell range. |
Returns
System.Boolean
|
TranslateRange(CellRange, CellRange)
Translates the range.
Declaration
protected override void TranslateRange(CellRange oldRange, CellRange newRange)
Parameters
CellRange
oldRange
The old range. |
CellRange
newRange
The new range. |
Overrides
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Returns an enumerator that iterates through a collection.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.Collections.IEnumerator
An System.Collections.IEnumerator object that can be used to iterate through the collection. |