Udostępnij przez


Właściwość ReportViewerWebPart.ToolBarItemsDisplayMode

Pobiera lub zestaws flagi bit wartość wyliczenia, który określa, które elementy paska narzędzi są wyświetlane po ToolBarMode jest zestaw do Full.

Przestrzeń nazw:  Microsoft.ReportingServices.SharePoint.UI.WebParts
Zestaw:  Microsoft.ReportingServices.SharePoint.UI.WebParts (w Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)

Składnia

'Deklaracja
<WebPartStorageAttribute(Storage.Shared)> _
Public Property ToolBarItemsDisplayMode As ToolBarItem
    Get
    Set
'Użycie
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)

Wartość właściwości

Typ: Microsoft.ReportingServices.SharePoint.UI.WebParts.ToolBarItem
Bit flagi wyliczenia wartość, która określa, które elementy paska narzędzi są wyświetlane.

Przykłady

Następujące przykłady przedstawiają metody korzystania ToolBarItemsDisplayMode Właściwość zestaw widoczność elementów paska narzędzi.

// 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