ReportViewerWebPart.ToolBarItemsDisplayMode Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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