共用方式為


DataFormWebPart.ShowToolbarWithRibbon Property

Gets or sets a value that indicates whether the toolbar needs to be shown in addition to the ribbon.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

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

value = instance.ShowToolbarWithRibbon

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

Property Value

Type: System.Boolean
true if the toolbar needs to be shown in addition to the ribbon; otherwise, false. The default value is false.

Remarks

If the UIVersion() is less than or equal to 3, this property will always be false.

See Also

Reference

DataFormWebPart Class

DataFormWebPart Members

Microsoft.SharePoint.WebPartPages Namespace