Поделиться через


Свойство ToolBarItemsDisplayMode

Gets or sets a bit flags enumeration value that specifies which toolbar items are displayed when ToolBarMode is set to Full.

Пространство имен:  Microsoft.ReportingServices.SharePoint.UI.WebParts
Сборка:  Microsoft.ReportingServices.SharePoint.UI.WebParts (в Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)

Синтаксис

'Декларация
<WebPartStorageAttribute(Storage.Shared)> _
Public Property ToolBarItemsDisplayMode As ToolBarItem
    Get
    Set
'Применение
Dim instance As ReportViewerWebPart
Dim value As ToolBarItem

value = instance.ToolBarItemsDisplayMode

instance.ToolBarItemsDisplayMode = value
[WebPartStorageAttribute(Storage.Shared)]
public ToolBarItem ToolBarItemsDisplayMode { get; set; }
[WebPartStorageAttribute(Storage::Shared)]
public:
property ToolBarItem ToolBarItemsDisplayMode {
    ToolBarItem get ();
    void set (ToolBarItem value);
}
[<WebPartStorageAttribute(Storage.Shared)>]
member ToolBarItemsDisplayMode : ToolBarItem with get, set
function get ToolBarItemsDisplayMode () : ToolBarItem
function set ToolBarItemsDisplayMode (value : ToolBarItem)

Значение свойства

Тип: Microsoft.ReportingServices.SharePoint.UI.WebParts. . :: . .ToolBarItem
A bit flags enumeration value that specifies which toolbar items are displayed.

Примеры

The following samples show how to use the ToolBarItemsDisplayMode property to set the visibility of toolbar items.

// Display all toolbar items
rvwp.ToolBarItemsDisplayMode = ToolBarItem.All;

// Display the Atom Feed and Back buttons only
rvwp.ToolBarItemsDisplayMode = 
ToolBarItem.AtomFeed | ToolBarItem.Back;

// Display everything except Atom Feed and Back buttons
rvwp.ToolBarItemsDisplayMode = ToolBarItem.All ^ ToolBarItem.AtomFeed ^ ToolBarItem.Back;

// Remove Atom Feed from the current setting
rvwp.ToolBarItemsDisplayMode &= ~ToolBarItem.AtomFeed;
' Display all toolbar items
rvwp.ToolBarItemsDisplayMode = ToolBarItem.All

' Display the Atom Feed and Back buttons only
rvwp.ToolBarItemsDisplayMode = ToolBarItem.AtomFeed Or ToolBarItem.Back

' Display everything except Atom Feed and Back buttons
rvwp.ToolBarItemsDisplayMode = ToolBarItem.All Xor ToolBarItem.AtomFeed Xor ToolBarItem.Back

' Remove Atom Feed from the current setting
rvwp.ToolBarItemsDisplayMode = rvwp.ToolBarItemsDisplayMode And Not ToolBarItem.AtomFeed