ReportViewerWebPart.ToolBarItemsDisplayMode Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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