Export (0) Print
Expand All

Control.ControlCollection Methods

The methods of the Control.ControlCollection class are listed here. For a complete list of Control.ControlCollection class members, see the Control.ControlCollection Members topic.

Public Methods

public methodAdd

Supported by the .NET Compact Framework.

Adds the specified control to the control collection.
public methodAddRange Adds an array of control objects to the collection.
public methodClear

Supported by the .NET Compact Framework.

Removes all controls from the collection.
public methodContains

Supported by the .NET Compact Framework.

Determines whether the specified control is a member of the collection.
public methodCopyTo

Supported by the .NET Compact Framework.

Copies the entire collection into an existing array at a specified location within the array.
public methodEquals

Supported by the .NET Compact Framework.

Overridden. See Object.Equals.
public methodGetChildIndex

Supported by the .NET Compact Framework.

Overloaded. Retrieves the index of a control within the control collection.
public methodGetEnumerator

Supported by the .NET Compact Framework.

Returns an enumerator that can be used to iterate through the control collection.
public methodGetHashCode

Supported by the .NET Compact Framework.

Overridden. See Object.GetHashCode.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodIndexOf

Supported by the .NET Compact Framework.

Retrieves the index of the specified control in the control collection.
public methodRemove

Supported by the .NET Compact Framework.

Removes the specified control from the control collection.
public methodRemoveAt

Supported by the .NET Compact Framework.

Removes a control from the control collection at the specified indexed location.
public methodSetChildIndex

Supported by the .NET Compact Framework.

Sets the index of the specified child control in the collection to the specified index value.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.

Protected Methods

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

Control.ControlCollection Class | System.Windows.Forms Namespace

Show:
© 2014 Microsoft