ArrangedElementCollection Class
Represents a collection of objects.
System.Windows.Forms.Layout::ArrangedElementCollection
System.Windows.Forms::Control::ControlCollection
System.Windows.Forms::ToolStripItemCollection
System.Windows.Forms::ToolStripPanel::ToolStripPanelRowCollection
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The ArrangedElementCollection type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Count | Gets the number of elements in the collection. |
![]() | IsReadOnly | Gets a value indicating whether the collection is read-only. |
| Name | Description | |
|---|---|---|
![]() | CopyTo | Copies the entire contents of this collection to a compatible one-dimensional Array, starting at the specified index of the target array. |
![]() | Equals | Determines whether two ArrangedElementCollection instances are equal. (Overrides Object::Equals(Object).) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetEnumerator | Returns an enumerator for the entire collection. |
![]() | GetHashCode | Returns the hash code for this instance. (Overrides Object::GetHashCode().) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | AsParallel | Enables parallelization of a query. (Defined by ParallelEnumerable.) |
![]() | AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
![]() | Cast<TResult> | Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
![]() | OfType<TResult> | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
| Name | Description | |
|---|---|---|
![]() ![]() | ICollection::IsSynchronized | For a description of this member, see the ICollection::IsSynchronized property. |
![]() ![]() | ICollection::SyncRoot | For a description of this member, see the ICollection::SyncRoot property. |
![]() ![]() | IList::Add | For a description of this member, see the IList::Add method. |
![]() ![]() | IList::Clear | For a description of this member, see the IList::Clear method. |
![]() ![]() | IList::Contains | For a description of this member, see the IList::Contains method. |
![]() ![]() | IList::IndexOf | For a description of this member, see the IList::IndexOf method. |
![]() ![]() | IList::Insert | For a description of this member, see the IList::Insert method. |
![]() ![]() | IList::IsFixedSize | For a description of this member, see the IList::IsFixedSize property. |
![]() ![]() | IList::Item | For a description of this member, see the IList::Item property. |
![]() ![]() | IList::Remove | For a description of this member, see the IList::Remove method. |
![]() ![]() | IList::RemoveAt | For a description of this member, see the IList::RemoveAt method. |
The ArrangedElementCollection class represents a collection of objects arranged on a design surface or inside a parent System.Windows.Forms::ContainerControl.
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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Public static (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.

