Partager via


RemoveToolPart(Microsoft.SharePoint.WebPartPages.ToolPart) Method

The RemoveToolPart method of the ToolPane class removes a ToolPart from the tool pane.

Parameters

tp     A Microsoft.SharePoint.WebPartPages.ToolPart that represents the tool part to be removed from the tool pane.

Example

The following code snippet demonstrates the use of the RemoveToolPart method to remove tool part myToolPart from the tool pane myToolPane.

Requirements

Platforms: Windows Server 2003

Security: Code Access Security

InsertToolPart(Int32, Microsoft.SharePoint.WebPartPages.ToolPart) Method