Class
CollectionBase<T>

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:

cs-api-definition
public abstract class CollectionBase<T> : IEnumerable

Inheritance: objectCollectionBase<T>

Derived Classes: BlockCollectionListLevelCollectionTableCellCollectionTableRowCollection

Implements: IEnumerable

Properties

Count

Number of items currently in the collection.

Declaration

cs-api-definition
public int Count { get; }

Property Value

int

The count.

this[int]

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

Declaration

cs-api-definition
public T this[int index] { get; }

Parameters

index

int

Property Value

T

The element.

Methods

Add(T)

Adds the specified item after validating input.

Declaration

cs-api-definition
public void Add(T item)

Parameters

item

T

The item.

GetEnumerator()

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

Declaration

cs-api-definition
public IEnumerator<T> GetEnumerator()

Returns

IEnumerator<T>

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