ICustomizeToolPane.ToolPaneTemplate Property
Gets a String that contains an XML fragment that specifies a template for a custom tool pane.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
ReadOnly Property ToolPaneTemplate As String
Get
'Usage
Dim instance As ICustomizeToolPane
Dim value As String
value = instance.ToolPaneTemplate
string ToolPaneTemplate { get; }
Property Value
Type: System.String
An XML fragment that defines a template for a custom tool pane.
Remarks
The schema for the XML fragment is as follows.
<?xml version=”1.0”?>
<ToolPane>
<Caption></Caption>
<ErrorUI></ErrorUI>
<NotifyUI></NotifyUI>
<ToolParts></ToolParts>
<Commands></Commands>
<FixedArea></FixedArea>
</ToolPane>
Element |
Description |
---|---|
Caption |
The Caption element specifies the title of the tool pane, and whether to display the close button. This element must be empty tag (it may have no children). The attributes of the Caption element are described in the following table:
|
ErrorUI |
The ErrorUI element specifies the location of the error messages within the tool pane body. This element has no children and no attributes. |
NotifyUI |
The NotifyUI element specifies the location of various notifications within the tool pane body. This element has no children and no attributes. |
ToolParts |
The ToolParts element specifies the tool parts that are displayed in the tool pane. All tool parts are displayed in the order of appearance of the ToolPart elements it contains, which are the only acceptable child elements of the ToolParts element. This element has no attributes. |
ToolPart |
The ToolPart element specifies a single tool part and may only appear as a child of the ToolParts element. This element has no children. The attributes of the ToolPart element are described in the following list:
|
Commands |
The Commands element specifies the command buttons that are displayed in the tool pane’s command area. This element can have no children. The attributes of the Commands element are described in the following table:
|
FixedArea |
The FixedArea element specifies an area within the tool pane that can contain links or controls like buttons that appear in the tool pane outside of the Commands area. This tag can have no children or attributes. |
To view a code sample that specifies the ToolPaneTemplate property, see ToolPane.