XRDesignMdiController.SetCommandVisibility(ReportCommand[], CommandVisibility) Method
Changes the visibility of the specified report commands.
Namespace: DevExpress.XtraReports.UserDesigner
Assembly: DevExpress.XtraReports.v19.1.Extensions.dll
NuGet Package: DevExpress.Win.Reporting
Declaration
public void SetCommandVisibility(
ReportCommand[] commands,
CommandVisibility visibility
)
Parameters
Name | Type | Description |
---|---|---|
commands | ReportCommand[] | An array of ReportCommand enumeration values, which specify the commands whose visibility needs to be changed. |
visibility | CommandVisibility | A CommandVisibility enumeration value, which 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.
Every report command is represented by either a toolbar button and a menu item, or a context menu item, or a verb in the End-User Designer window.
The SetCommandVisibility method allows changing the visibility of several report commands at the same time. To change the visibility of only a single report command, use the overloaded SetCommandVisibility method.
To get the current visibility state of a report command, use the XRDesignMdiController.GetCommandVisibility method.