共用方式為


DataFormWebPart.ShowToolbarWithRibbon property

取得或設定值,指出是否需要除了功能區顯示的工具列。

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
<BrowsableAttribute(True)> _
<ResourcesAttribute("ShowToolbarWithRibbon", "", "ShowToolbarWithRibbon")> _
<WebPartStorageAttribute(Storage.Shared)> _
Public Property ShowToolbarWithRibbon As Boolean
    Get
    Set
'用途
Dim instance As DataFormWebPart
Dim value As Boolean

value = instance.ShowToolbarWithRibbon

instance.ShowToolbarWithRibbon = value
[BrowsableAttribute(true)]
[ResourcesAttribute("ShowToolbarWithRibbon", "", "ShowToolbarWithRibbon")]
[WebPartStorageAttribute(Storage.Shared)]
public bool ShowToolbarWithRibbon { get; set; }

Property value

Type: System.Boolean
true如果需要顯示在功能區 ; 除了工具列否則, false。預設值是false。

備註

如果**UIVersion()**是小於或等於 3,這個屬性一定會是false。

請參閱

參照

DataFormWebPart class

DataFormWebPart members

Microsoft.SharePoint.WebPartPages namespace