ArrangedElementCollection Class
Collapse the table of content
Expand the table of content

ArrangedElementCollection Class

 

Represents a collection of objects.

Namespace:   System.Windows.Forms.Layout
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)


public class ArrangedElementCollection : IList, ICollection, 
	IEnumerable

NameDescription
System_CAPS_pubpropertyCount

Gets the number of elements in the collection.

System_CAPS_pubpropertyIsReadOnly

Gets a value indicating whether the collection is read-only.

NameDescription
System_CAPS_pubmethodCopyTo(Array, Int32)

Copies the entire contents of this collection to a compatible one-dimensional Array, starting at the specified index of the target array.

System_CAPS_pubmethodEquals(Object)

Determines whether two ArrangedElementCollection instances are equal.(Overrides Object.Equals(Object).)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Returns an enumerator for the entire collection.

System_CAPS_pubmethodGetHashCode()

Returns the hash code for this instance.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Add(Object)

For a description of this member, see the IList.Add method.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Clear()

For a description of this member, see the IList.Clear method.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Contains(Object)

For a description of this member, see the IList.Contains method.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.IndexOf(Object)

For a description of this member, see the IList.IndexOf method.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Insert(Int32, Object)

For a description of this member, see the IList.Insert method.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Remove(Object)

For a description of this member, see the IList.Remove method.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.RemoveAt(Int32)

For a description of this member, see the IList.RemoveAt method.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyICollection.IsSynchronized

For a description of this member, see the ICollection.IsSynchronized property.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyICollection.SyncRoot

For a description of this member, see the ICollection.SyncRoot property.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIList.IsFixedSize

For a description of this member, see the IList.IsFixedSize property.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIList.Item[Int32]

For a description of this member, see the IList.Item property.

NameDescription
System_CAPS_pubmethodAsParallel()

Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)

System_CAPS_pubmethodAsQueryable()

Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.)

System_CAPS_pubmethodCast<TResult>()

Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.)

System_CAPS_pubmethodOfType<TResult>()

Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.)

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.

.NET Framework
Available since 2.0

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.

Return to top
Show:
© 2016 Microsoft