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
name
Type: System.StringThe name of the control you want to search for in the ControlCollection instance.
Return Value
Type: System.Boolean
true if the control was found in the collection; otherwise, false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.