Class CollectionBase<T>
Generic base collection for editing model elements; provides validated add, index access, and enumeration.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Fixed.Model.Editing.Collections
Assembly: Telerik.Windows.Documents.Fixed.dll
Syntax
public abstract class CollectionBase<T> : IEnumerable<T>, IEnumerable
Type Parameters
|
T
|
Properties
Count
Number of items currently in the collection.
Declaration
public int Count { get; }
Property Value
|
System.Int32
The count. |
Item[Int32]
Accesses the element at the specified index; assignments are validated for non-null.
Declaration
public T this[int index] { get; }
Parameters
|
System.Int32
index
|
Property Value
|
T
The element. |
Methods
Add(T)
Adds the specified item after validating input.
Declaration
public void Add(T item)
Parameters
|
T
item
The item. |
GetEnumerator()
Returns an enumerator to iterate over the items in insertion order.
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
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Returns a non-generic enumerator for iteration.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
|
System.Collections.IEnumerator
An System.Collections.IEnumerator object that can be used to iterate through the collection. |