Element Collection Class
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a collection of objects.
public ref class ArrangedElementCollection : System::Collections::IList
public class ArrangedElementCollection : System.Collections.IList
type ArrangedElementCollection = class interface IList interface ICollection interface IEnumerable
Public Class ArrangedElementCollection Implements IList
There are no publicly defined constructors in ArrangedElementCollection because it is designed to be used only internally within the .NET Framework. However, classes derived from ArrangedElementCollection, such as System.Windows.Forms.Control.ControlCollection, are available to the developer.
Gets the number of elements in the collection.
Gets a value indicating whether the collection is read-only.
Copies the entire contents of this collection to a compatible one-dimensional Array, starting at the specified index of the target array.
Determines whether two ArrangedElementCollection instances are equal.
Returns an enumerator for the entire collection.
Returns the hash code for this instance.
Gets the Type of the current instance.(Inherited from Object)
Creates a shallow copy of the current Object.(Inherited from Object)
Returns a string that represents the current object.(Inherited from Object)
Explicit Interface Implementations
For a description of this member, see the IsSynchronized property.
For a description of this member, see the SyncRoot property.
For a description of this member, see the Add(Object) method.
For a description of this member, see the Clear() method.
For a description of this member, see the Contains(Object) method.
For a description of this member, see the IndexOf(Object) method.
For a description of this member, see the Insert(Int32, Object) method.
For a description of this member, see the IsFixedSize property.
For a description of this member, see the Item[Int32] property.
For a description of this member, see the Remove(Object) method.
For a description of this member, see the RemoveAt(Int32) method.
Casts the elements of an IEnumerable to the specified type.
Filters the elements of an IEnumerable based on a specified type.
Enables parallelization of a query.
Shared in Visual Basic) members of this type are thread safe. Instance members are not guaranteed to be thread safe.
An ArrangedElementCollection can support multiple readers concurrently, as long as the collection is not modified. The GetEnumerator() method returns an IEnumerator that can be used to access elements.
Enumerating through a collection is intrinsically not a thread-safe procedure. Even when a collection is synchronized, other threads could still modify the collection, which causes the enumerator to throw an exception. To guarantee thread safety during enumeration, you can either lock the collection during the entire enumeration or catch the exceptions resulting from changes made by other threads.