New to Telerik Document ProcessingStart a free 30-day trial

Generic base collection for editing model elements; provides validated add, index access, and enumeration.

Definition

Namespace:Telerik.Windows.Documents.Fixed.Model.Editing.Collections

Assembly:Telerik.Windows.Documents.Fixed.dll

Type Parameters:

T

Syntax:

C#
public abstract class CollectionBase<T> : IEnumerable<T>, IEnumerable

Inheritance: objectCollectionBase<T>

Derived Classes: BlockCollectionListLevelCollectionTableCellCollectionTableRowCollection

Implements: IEnumerableIEnumerable<T>

Methods

Adds the specified item after validating input.

C#
public void Add(T item)
Parameters:itemT

The item.

Returns an enumerator to iterate over the items in insertion order.

C#
public IEnumerator<T> GetEnumerator()
Returns:

IEnumerator<T>

A IEnumerator<T> that can be used to iterate through the collection.

Implements: IEnumerable<T>.GetEnumerator()

Properties

Number of items currently in the collection.

C#
public int Count { get; }
Property Value:

The count.

Accesses the element at the specified index; assignments are validated for non-null.

C#
public T this[int index] { get; }
Parameters:indexintProperty Value:

The element.