ReportViewerWebPart.ToolBarItemsDisplayMode 属性

定义

获取或设置一个位标志枚举值,该值指定当 ToolBarMode 设置为 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

属性值

一个位标志枚举值,该值指定所显示的工具栏项。

属性
Microsoft.SharePoint.WebPartPages.WebPartStorageAttribute

示例

以下示例演示如何使用 ToolBarItemsDisplayMode 属性设置工具栏项的可见性。

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

适用于