Share via


ReportViewerWebPart.ToolBarItemsDisplayMode Propriété

Définition

Obtient ou définit une valeur d'énumération d'indicateurs de bits qui spécifie quels éléments de barre d'outils sont affichés lorsque ToolBarMode est défini sur 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

Valeur de propriété

Valeur d'énumération d'indicateurs de bits qui spécifie quels éléments de barre d'outils sont affichés.

Attributs
Microsoft.SharePoint.WebPartPages.WebPartStorageAttribute

Exemples

Les exemples suivants montrent comment utiliser la ToolBarItemsDisplayMode propriété pour définir la visibilité des éléments de la barre d’outils.

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

S’applique à