Back to Devexpress

CommandVisibility Enum

xtrareports-devexpress-dot-xtrareports-dot-userdesigner-36e91e33.md

latest2.8 KB
Original Source

CommandVisibility Enum

Specifies the visibility levels for the report commands in the End-User Designer.

Namespace : DevExpress.XtraReports.UserDesigner

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

NuGet Package : DevExpress.Win.Reporting

Declaration

csharp
[Flags]
public enum CommandVisibility
vb
<Flags>
Public Enum CommandVisibility

Members

NameDescription
None

The command is inaccessible.

| | Toolbar |

The command is visible in the toolbar and menu only. If this command doesn’t have an associated bar or menu item, the SetCommandVisibility method doesn’t change its visibility.

| | ContextMenu |

The command is visible in the context menu only. If this command doesn’t have an associated context menu item, the SetCommandVisibility method doesn’t change its visibility.

| | Verb |

The command is available as a context link only. If this command doesn’t have an associated verb, the SetCommandVisibility method doesn’t change its visibility.

| | All |

The command is visible wherever it can be available.

|

Remarks

This enumeration’s members are used to specify the visibility level for the report commands via the XRDesignPanel.SetCommandVisibility method. A list of all the report commands is provided by the ReportCommand enumeration.

Note

Every report command represents either a toolbar button and a menu item, or a context menu item, or a context link, or any of them. Thus if the visibility level is set to ContextMenu and there is no context menu item for the report command specified, then no context menu items will be shown anyway.

See Also

SetCommandVisibility

GetCommandVisibility(ReportCommand)

Hide Commands from the End-User Report Designer

DevExpress.XtraReports.UserDesigner Namespace