Udostępnij za pośrednictwem


ControlCollection.Contains Method (2007 System)

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

Public method

Contains(Object)

Determines whether the specified control is a member of the ControlCollection instance.

Public method

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.

See Also

Reference

ControlCollection Class

ControlCollection Members

Microsoft.Office.Tools.Excel Namespace