Collection Class
Represents a base non-generic type for all collection types in the GemBox.Presentation assembly.
public abstract class Collection : IList, ICollection, IEnumerablePublic MustInherit Class Collection
    Implements IList, ICollection, IEnumerable- Inheritance:
- System.ObjectCollection
- Derived
- Collection<T>
Implements
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
Properties
Count
Gets the number of items contained in the collection.
Property Value
- System.Int32
The number of items contained in the collection.
Item[Int32]
Gets the item at the specified index.
public object this[int index] { get; }Public ReadOnly Property Item(index As Integer) As ObjectParameters
- index
- System.Int32
The zero-based index of the item to get.
Property Value
- System.Object
The item at the specified index.
Exceptions
- System.ArgumentOutOfRangeException
index is less than zero or index is equal to or greater than Count.
Methods
Clear()
Removes all items from the collection.
GetEnumerator()
Returns an enumerator that iterates through the collection.
Returns
- System.Collections.IEnumerator
An System.Collections.IEnumerator for the collection.
RemoveAt(Int32)
Removes the item at the specified index of the collection.
Parameters
- index
- System.Int32
The zero-based index of the item to remove.
Exceptions
- System.ArgumentOutOfRangeException
index is less than zero or index is equal to or greater than Count.
Implements
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
See Also
Collection<T>