ControlCollection.Contains Method (String)
Determines whether a control with the specified name is a member of the ControlCollection instance.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)
Syntax
'Declaration
Function Contains ( _
name As String _
) As Boolean
bool Contains(
string name
)
Parameters
- name
Type: System.String
The 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.