ICustomizeToolPane.ToolPaneTemplate property
取得包含指定的自訂工具窗格的範本的 XML 片段String 。
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
ReadOnly Property ToolPaneTemplate As String
Get
'用途
Dim instance As ICustomizeToolPane
Dim value As String
value = instance.ToolPaneTemplate
string ToolPaneTemplate { get; }
Property value
Type: System.String
定義自訂的工具窗格的範本 XML 片段。
備註
結構描述的 XML 片段是,如下所示。
<?xml version=”1.0”?>
<ToolPane>
<Caption></Caption>
<ErrorUI></ErrorUI>
<NotifyUI></NotifyUI>
<ToolParts></ToolParts>
<Commands></Commands>
<FixedArea></FixedArea>
</ToolPane>
元素 |
描述 |
---|---|
Caption |
Caption元素會指定 [工具] 窗格中,以及是否要顯示 [關閉] 按鈕的標題。此元素必須是空的標籤 (可能會有任何子項目)。下表說明Caption元素的屬性:
|
ErrorUI |
ErrorUI元素指定工具窗格內文中的錯誤訊息的位置。此元素內沒有子項目和任何屬性。 |
NotifyUI |
NotifyUI元素指定各種通知工具窗格內文中的位置。此元素內沒有子項目和任何屬性。 |
ToolParts |
ToolParts元素會指定在工具窗格中顯示的工具組件。所有工具組件會顯示以ToolPart元素外觀順序它所都包含有哪些是ToolParts元素只可接受的子元素。此元素會有任何屬性。 |
ToolPart |
ToolPart元素會指定單一工具組件,而且可能只顯示為ToolParts元素的子項。此元素有沒有子項目。下列清單說明ToolPart元素的屬性:
|
Commands |
Commands元素會指定顯示在工具窗格中的命令區域命令按鈕。此元素可以有沒有子項目。下表說明Commands元素的屬性:
|
FixedArea |
FixedArea元素會指定連結或 like 命令區域外的 [工具] 窗格中顯示的按鈕控制項可以包含在工具窗格內的區域。沒有子系] 或 [屬性,可以有此標籤。 |
若要檢視指定的ToolPaneTemplate屬性的程式碼範例,請參閱 < ToolPane。