The ElementCollection type exposes the following members.

Constructors

  NameDescription
ElementCollection
Initializes a new instance of the ElementCollection class.

Methods

  NameDescription
Add
Appends the specified Element to the end of the collection.
Clear
Removes all Element objects from the collection.
Contains
Determines whether the collection contains the specified Element.
CopyTo
Copies the items from the ElementCollection to the specified Array, starting with the specified index.
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetEnumerator
Returns a IEnumerator implemented object that contains all Element objects in the ElementCollection.
GetHashCode
Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
IndexOf
Determines the index value that represents the position of the specified Element in the collection.
Insert
Inserts the specified Element in the collection at the specified index location.
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Remove
Removes the specified Element from the collection.
RemoveAt
Removes the Element at the specified index from the collection.
ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  NameDescription
Count
Gets the number of Element objects in the collection.
IsSynchronized
Gets a value indicating whether access to the ElementCollection is synchronized (thread-safe).
ItemOverloaded.
SyncRoot
Gets the object that can be used to synchronize access to the ElementCollection.

See Also