XRDesignMdiController.SetCommandVisibility(ReportCommand, CommandVisibility) Method
Changes the visibility of the specified report command.
Namespace: DevExpress.XtraReports.UserDesigner
Assembly: DevExpress.XtraReports.v24.2.Extensions.dll
NuGet Package: DevExpress.Win.Reporting
Declaration
Parameters
Name | Type | Description |
---|---|---|
command | ReportCommand | A ReportCommand enumeration value that specifies the command whose visibility needs to be changed. |
visibility | CommandVisibility | A CommandVisibility enumeration value that specifies the visibility state of the report command. |
Remarks
Note
The SetCommandVisibility method takes effect only in Windows Forms applications where it must be called after the DocumentViewer.DocumentSource property has been assigned a value.
A report command can be associated with a toolbar button, a menu item, a context menu item, or a verb in the End-User Designer window.
To get the current visibility state of a report command, use the XRDesignMdiController.GetCommandVisibility method.