Back to Devexpress

XRDesignMdiController.SetCommandVisibility(ReportCommand, CommandVisibility) Method

xtrareports-devexpress-dot-xtrareports-dot-userdesigner-dot-xrdesignmdicontroller-dot-setcommandvisibility-x28-reportcommand-commandvisibility-x29.md

latest2.8 KB
Original Source

XRDesignMdiController.SetCommandVisibility(ReportCommand, CommandVisibility) Method

Changes the visibility of the specified report command.

Namespace : DevExpress.XtraReports.UserDesigner

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

NuGet Package : DevExpress.Win.Reporting

Declaration

csharp
public void SetCommandVisibility(
    ReportCommand command,
    CommandVisibility visibility
)
vb
Public Sub SetCommandVisibility(
    command As ReportCommand,
    visibility As CommandVisibility
)

Parameters

NameTypeDescription
commandReportCommand

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.

See Also

GetCommandVisibility(ReportCommand)

XRDesignMdiController Class

XRDesignMdiController Members

DevExpress.XtraReports.UserDesigner Namespace