ControlCollection.Contains Method
Include Protected Members
Include Inherited Members
Determines whether the specified control is a member of the ControlCollection instance.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
Overload List
Name | Description | |
---|---|---|
Contains(Object) | Determines whether the specified control is a member of the ControlCollection instance. | |
Contains(String) | Determines whether a control with the specified name is a member of the ControlCollection instance. |
Top
Remarks
This method enables you to determine whether a control is a member of the collection before attempting to perform operations on the control. You can use this method to confirm that a control has been added to, or is still a member of, the ControlCollection instance.