Skip to main content
A newer version of this page is available. .

XRDesignMdiController.SetCommandVisibility(ReportCommand, CommandVisibility) Method

Changes the visibility of the specified report command.

Namespace: DevExpress.XtraReports.UserDesigner

Assembly: DevExpress.XtraReports.v18.2.Extensions.dll

Declaration

public void SetCommandVisibility(
    ReportCommand command,
    CommandVisibility visibility
)

Parameters

Name Type Description
command ReportCommand

A ReportCommand enumeration value, which specifies the command 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 only a single report command. To change the visibility of several report commands at the same time, use the overloaded SetCommandVisibility method.

To get the current visibility state of a report command, use the XRDesignMdiController.GetCommandVisibility method.

See Also