Partager via


ControlCollection.Contains Method (String)

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

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)

Syntax

'Declaration
Function Contains ( _
    name As String _
) As Boolean
bool Contains(
    string name
)

Parameters

Return Value

Type: System.Boolean
true if the control was found in the collection; otherwise, false.

.NET Framework Security

See Also

Reference

ControlCollection Interface

Contains Overload

Microsoft.Office.Tools.Excel Namespace