ToolPane.RemoveToolPart Method
Removes a ToolPart from the tool pane.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Sub RemoveToolPart ( _
tp As ToolPart _
)
'Usage
Dim instance As ToolPane
Dim tp As ToolPart
instance.RemoveToolPart(tp)
public void RemoveToolPart(
ToolPart tp
)
Parameters
tp
Type: Microsoft.SharePoint.WebPartPages.ToolPartAToolPartthat represents the tool part to be removed from the tool pane.
Examples
The following code snippet demonstrates the use of the RemoveToolPart method to remove tool part myToolPart from the tool pane myToolPane.
myToolPane.RemoveToolPart(myToolPart)
myToolPane.RemoveToolPart(myToolPart);