ControlCollection.Remove Method (Object)
Removes the specified control from the ControlCollection instance.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)
Syntax
'Declaration
Sub Remove ( _
control As Object _
)
void Remove(
Object control
)
Parameters
control
Type: System.ObjectThe control to be removed from the ControlCollection instance.
Remarks
Controls that were added at design time cannot be removed from the ControlCollection instance. You can use the Remove method only to remove controls added at run time.
.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.