Click or drag to resize
ElementCollection Class
Represents a base non-generic class for Element collections.
Inheritance Hierarchy

Namespace: GemBox.Document
Assembly: GemBox.Document (in GemBox.Document.dll) Version: 25.3.30.1231
Syntax
public abstract class ElementCollection : IList, 
	ICollection, IEnumerable

The ElementCollection type exposes the following members.

Methods
  NameDescription
Public methodClear
Removes all items from the IList.
Public methodCopyTo
Copies the elements of the ElementCollection to an Array, starting at a particular Array index.
Public methodGetEnumerator
Returns an enumerator that iterates through a collection.
Public methodRemoveAt
Removes the IList item at the specified index.
Top
Properties
  NameDescription
Public propertyContent
Gets the content of the current ElementCollection.
Public propertyCount
Gets the number of elements contained in the ElementCollection.
Public propertyItem
Gets the Element at the specified index.
Public propertySupportedElementTypes
Gets a sequence of ElementTypes that can be contained in this collection.
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIListAdd
Adds an item to the IList.
Explicit interface implementationPrivate methodIListContains
Determines whether the IList contains a specific value.
Explicit interface implementationPrivate methodICollectionCopyTo
Copies the elements of the ICollection to an Array, starting at a particular Array index.
Explicit interface implementationPrivate methodIEnumerableGetEnumerator
Returns an enumerator that iterates through a collection.
Explicit interface implementationPrivate methodIListIndexOf
Determines the index of a specific item in the IList.
Explicit interface implementationPrivate methodIListInsert
Inserts an item to the IList at the specified index.
Explicit interface implementationPrivate propertyIListIsFixedSize
Gets a value indicating whether the IList has a fixed size.
Explicit interface implementationPrivate propertyIListIsReadOnly
Gets a value indicating whether the IList is read-only.
Explicit interface implementationPrivate propertyICollectionIsSynchronized
Gets a value indicating whether access to the ICollection is synchronized (thread safe).
Explicit interface implementationPrivate propertyIListItem
Gets or sets the element at the specified index.
Explicit interface implementationPrivate methodIListRemove
Removes the first occurrence of a specific object from the IList.
Explicit interface implementationPrivate propertyICollectionSyncRoot
Gets an object that can be used to synchronize access to the ICollection.
Top
Remarks
ElementCollection has a covariant public interface, meaning that it contains only common collection methods that are typesafe (methods that do not accept Element derived parameters). To access all collection methods in a non-typesafe way, cast an ElementCollection to an IList and use IList's members.
See Also