ReportViewerWebPart.ToolBarItemsDisplayMode Property

Definition

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

public:
 property Microsoft::ReportingServices::SharePoint::UI::WebParts::ToolBarItem ToolBarItemsDisplayMode { Microsoft::ReportingServices::SharePoint::UI::WebParts::ToolBarItem get(); void set(Microsoft::ReportingServices::SharePoint::UI::WebParts::ToolBarItem value); };
[Microsoft.SharePoint.WebPartPages.WebPartStorage(Microsoft.SharePoint.WebPartPages.Storage.Shared)]
public Microsoft.ReportingServices.SharePoint.UI.WebParts.ToolBarItem ToolBarItemsDisplayMode { get; set; }
[<Microsoft.SharePoint.WebPartPages.WebPartStorage(Microsoft.SharePoint.WebPartPages.Storage.Shared)>]
member this.ToolBarItemsDisplayMode : Microsoft.ReportingServices.SharePoint.UI.WebParts.ToolBarItem with get, set
Public Property ToolBarItemsDisplayMode As ToolBarItem

Property Value

A bit flags enumeration value that specifies which toolbar items are displayed.

Attributes
Microsoft.SharePoint.WebPartPages.WebPartStorageAttribute

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  

Applies to