Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

XRDesignPanel.GetCommandVisibility(ReportCommand) Method

Gets the visibility state of the specified report command in the Design Panel.

Namespace: DevExpress.XtraReports.UserDesigner

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

NuGet Package: DevExpress.Win.Reporting

#Declaration

public CommandVisibility GetCommandVisibility(
    ReportCommand command
)

#Parameters

Name Type Description
command ReportCommand

A ReportCommand enumeration value, which specifies the command whose visibility is to be determined.

#Returns

Type Description
CommandVisibility

A CommandVisibility enumeration value, which represents the visibility state of the report command.

#Remarks

In the End-User Designer, every report command is represented by a toolbar button, a menu item, a context menu item, or a context link. The values of the CommandVisibility enumeration represents the visibility states of a command. And, the GetCommandVisibility method allows you to determine the current visibility state of a report command.

To determine the availability of a report command, call the XRDesignPanel.GetCommandEnabled method.

To change the visibility of the specified report command, use the XRDesignPanel.SetCommandVisibility method.

See Also