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