ReportViewerWebPart.ToolBarItemsDisplayMode Property

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

Namespace:  Microsoft.ReportingServices.SharePoint.UI.WebParts
Assembly:  Microsoft.ReportingServices.SharePoint.UI.WebParts (in Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)

Syntax

'Declaration
<WebPartStorageAttribute(Storage.Shared)> _
Public Property ToolBarItemsDisplayMode As ToolBarItem 
    Get 
    Set
'Usage
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)

Property Value

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

Examples

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

See Also

Reference

ReportViewerWebPart Class

Microsoft.ReportingServices.SharePoint.UI.WebParts Namespace