This topic has not yet been rated - Rate this topic

MdiClient.ControlCollection Class

Contains a collection of MdiClient controls.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)
[ComVisibleAttribute(false)]
public class ControlCollection : Control..::..ControlCollection

The MdiClient.ControlCollection type exposes the following members.

  Name Description
Public method MdiClient.ControlCollection Initializes a new instance of the MdiClient.ControlCollection class, specifying the owner of the collection.
Top
  Name Description
Public property Count Gets the number of elements in the collection. (Inherited from ArrangedElementCollection.)
Public property IsReadOnly Gets a value indicating whether the collection is read-only. (Inherited from ArrangedElementCollection.)
Public property Item[Int32] Indicates the Control at the specified indexed location in the collection. (Inherited from Control.ControlCollection.)
Public property Item[String] Indicates a Control with the specified key in the collection. (Inherited from Control.ControlCollection.)
Public property Owner Gets the control that owns this Control.ControlCollection. (Inherited from Control.ControlCollection.)
Top
  Name Description
Public method Add Adds a control to the multiple-document interface (MDI) Container. (Overrides Control.ControlCollection.Add(Control).)
Public method AddRange Adds an array of control objects to the collection. (Inherited from Control.ControlCollection.)
Public method Clear Removes all controls from the collection. (Inherited from Control.ControlCollection.)
Public method Contains Determines whether the specified control is a member of the collection. (Inherited from Control.ControlCollection.)
Public method ContainsKey Determines whether the Control.ControlCollection contains an item with the specified key. (Inherited from Control.ControlCollection.)
Public method CopyTo Copies the entire contents of this collection to a compatible one-dimensional Array, starting at the specified index of the target array. (Inherited from ArrangedElementCollection.)
Public method Equals Determines whether two ArrangedElementCollection instances are equal. (Inherited from ArrangedElementCollection.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Find Searches for controls by their Name property and builds an array of all the controls that match. (Inherited from Control.ControlCollection.)
Public method GetChildIndex(Control) Retrieves the index of the specified child control within the control collection. (Inherited from Control.ControlCollection.)
Public method GetChildIndex(Control, Boolean) Retrieves the index of the specified child control within the control collection, and optionally raises an exception if the specified control is not within the control collection. (Inherited from Control.ControlCollection.)
Public method GetEnumerator Retrieves a reference to an enumerator object that is used to iterate over a Control.ControlCollection. (Inherited from Control.ControlCollection.)
Public method GetHashCode Returns the hash code for this instance. (Inherited from ArrangedElementCollection.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IndexOf Retrieves the index of the specified control in the control collection. (Inherited from Control.ControlCollection.)
Public method IndexOfKey Retrieves the index of the first occurrence of the specified item within the collection. (Inherited from Control.ControlCollection.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove Removes a child control. (Overrides Control.ControlCollection.Remove(Control).)
Public method RemoveAt Removes a control from the control collection at the specified indexed location. (Inherited from Control.ControlCollection.)
Public method RemoveByKey Removes the child control with the specified key. (Inherited from Control.ControlCollection.)
Public method SetChildIndex Sets the index of the specified child control in the collection to the specified index value. (Inherited from Control.ControlCollection.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
  Name Description
Explicit interface implemetation Private method ICloneable.Clone Infrastructure. For a description of this member, see ICloneable.Clone. (Inherited from Control.ControlCollection.)
Explicit interface implemetation Private property ICollection.IsSynchronized For a description of this member, see the ICollection.IsSynchronized property. (Inherited from ArrangedElementCollection.)
Explicit interface implemetation Private property ICollection.SyncRoot For a description of this member, see the ICollection.SyncRoot property. (Inherited from ArrangedElementCollection.)
Explicit interface implemetation Private method IList.Add Infrastructure. For a description of this member, see IList.Add. (Inherited from Control.ControlCollection.)
Explicit interface implemetation Private method IList.Clear For a description of this member, see the IList.Clear method. (Inherited from ArrangedElementCollection.)
Explicit interface implemetation Private method IList.Contains For a description of this member, see the IList.Contains method. (Inherited from ArrangedElementCollection.)
Explicit interface implemetation Private method IList.IndexOf For a description of this member, see the IList.IndexOf method. (Inherited from ArrangedElementCollection.)
Explicit interface implemetation Private method IList.Insert For a description of this member, see the IList.Insert method. (Inherited from ArrangedElementCollection.)
Explicit interface implemetation Private property IList.IsFixedSize For a description of this member, see the IList.IsFixedSize property. (Inherited from ArrangedElementCollection.)
Explicit interface implemetation Private property IList.Item For a description of this member, see the IList.Item property. (Inherited from ArrangedElementCollection.)
Explicit interface implemetation Private method IList.Remove Infrastructure. For a description of this member, see IList.Remove. (Inherited from Control.ControlCollection.)
Explicit interface implemetation Private method IList.RemoveAt For a description of this member, see the IList.RemoveAt method. (Inherited from ArrangedElementCollection.)
Top

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ