Skip to main content

XRDesignMdiController.SetCommandVisibility(ReportCommand[], CommandVisibility) Method

Changes the visibility of specified report commands.

Namespace: DevExpress.XtraReports.UserDesigner

Assembly: DevExpress.XtraReports.v23.2.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.

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.

See Also