Back to Devexpress

XRDesignMdiController.SetCommandVisibility(ReportCommand[], CommandVisibility) Method

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

latest2.9 KB
Original Source

XRDesignMdiController.SetCommandVisibility(ReportCommand[], CommandVisibility) Method

Changes the visibility of specified report commands.

Namespace : DevExpress.XtraReports.UserDesigner

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

NuGet Package : DevExpress.Win.Reporting

Declaration

csharp
public void SetCommandVisibility(
    ReportCommand[] commands,
    CommandVisibility visibility
)
vb
Public Sub SetCommandVisibility(
    commands As ReportCommand(),
    visibility As CommandVisibility
)

Parameters

NameTypeDescription
commandsReportCommand[]

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

GetCommandVisibility(ReportCommand)

XRDesignMdiController Class

XRDesignMdiController Members

DevExpress.XtraReports.UserDesigner Namespace