Class DomArrayBase<T>
- Namespace
- combit.Reporting.Dom
- Assembly
- combit.ListLabel31.CrossPlatform.dll
Represents a base class for DOM array-like collections.
Provides functionality for managing and enumerating items of type T.
public abstract class DomArrayBase<T> : DomItem, IEnumerable<T>, IEnumerable where T : DomItem
Type Parameters
TThe type of items in the collection, which must derive from DomItem.
- Inheritance
-
DomArrayBase<T>
- Implements
-
IEnumerable<T>
- Derived
- Inherited Members
Properties
this[int]
Gets or sets the item at the specified index.
public abstract T this[int index] { get; }
Parameters
indexintThe zero-based index of the item to get or set.
Property Value
- T
The item at the specified index.
Items
Gets an enumerable collection of items in this DomArrayBase<T>.
public IEnumerable<T> Items { get; }
Property Value
- IEnumerable<T>
Length
Gets the number of items in the collection.
public virtual int Length { get; }
Property Value
Methods
BaseGetItem(int)
Gets the item at the specified index as a DomItem.
public DomItem BaseGetItem(int index)
Parameters
indexintThe zero-based index of the item to retrieve.
Returns
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<T> GetEnumerator()
Returns
- IEnumerator<T>
An enumerator for the collection.