Back to Devexpress

DashboardPopupMenuShowingEventArgs.DashboardArea Property

dashboard-devexpress-dot-dashboardwin-dot-dashboardpopupmenushowingeventargs.md

latest3.4 KB
Original Source

DashboardPopupMenuShowingEventArgs.DashboardArea Property

Gets the value that identifies a popup menu location within the dashboard.

Namespace : DevExpress.DashboardWin

Assembly : DevExpress.Dashboard.v25.2.Win.dll

NuGet Package : DevExpress.Win.Dashboard

Declaration

csharp
public DashboardArea DashboardArea { get; }
vb
Public ReadOnly Property DashboardArea As DashboardArea

Property Value

TypeDescription
DashboardArea

A DashboardArea enumeration value that identifies a popup menu location within the dashboard.

|

Available values:

NameDescription
DashboardTitle

Identifies a dashboard title.

| | DashboardItemCaption |

Identifies a dashboard item caption.

| | DashboardItem |

Identifies a dashboard item.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DashboardArea property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-dashboard-customize-title-and-item-captions/CS/CustomizeDashboardItemCaptionExample/ViewerForm1.cs#L92

csharp
// Hide popup menu everywhere except the dashboard title, to hide commands related to the export actions.
if (e.DashboardArea == DashboardArea.DashboardItem)
    e.Allow = false;

winforms-dashboard-customize-title-and-item-captions/VB/CustomizeDashboardItemCaptionExample/ViewerForm1.vb#L94

vb
' Hide popup menu everywhere except the dashboard title, to hide commands related to the export actions.
If e.DashboardArea = DashboardArea.DashboardItem Then
    e.Allow = False

See Also

DashboardItemArea

DashboardPopupMenuShowingEventArgs Class

DashboardPopupMenuShowingEventArgs Members

DevExpress.DashboardWin Namespace