Export (0) Print
Expand All

Control.ControlCollection Members

Control.ControlCollection overview

Public Constructors

public constructorControlControlCollection Constructor

Supported by the .NET Compact Framework.

Initializes a new instance of the Control.ControlCollection class.

Public Properties

public propertyCount

Supported by the .NET Compact Framework.

Gets the total number of Control objects in the collection.
public propertyIsReadOnly

Supported by the .NET Compact Framework.

Gets a value indicating whether the control collection is read-only.
public propertyItem Indicates the Control at the specified indexed location in the collection.

In C#, this property is the indexer for the Control.ControlCollection class.

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:
© 2015 Microsoft