Represents a collection of objects.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Thetype exposes the following members.
|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 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.)|
|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.)|
|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 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 because it is designed to be used only internally within the .NET Framework. However, classes derived from , 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.
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.