Back to Devexpress

DashboardItemMouseEventArgs.DashboardItemName Property

dashboard-devexpress-dot-dashboardwin-dot-dashboarditemmouseeventargs.md

latest4.8 KB
Original Source

DashboardItemMouseEventArgs.DashboardItemName Property

Gets the name of the dashboard item for which the event has been raised.

Namespace : DevExpress.DashboardWin

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

NuGet Package : DevExpress.Win.Dashboard

Declaration

csharp
public string DashboardItemName { get; }
vb
Public ReadOnly Property DashboardItemName As String

Property Value

TypeDescription
String

A String that is the dashboard item name.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the DashboardItemName 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-obtain-dashboard-item-client-data/CS/Dashboard_ClientDataCards_Win/Form1.cs#L21

csharp
DashboardItemMouseActionEventArgs e) {
if (e.DashboardItemName == "cardDashboardItem1" & e.GetAxisPoint() != null) {
    // Obtains client data related to the clicked card.

winforms-dashboard-add-custom-interactivity-to-dashboard/CS/Dashboard_CustomVisualInteractivity/Form1.cs#L50

csharp
DashboardItemMouseActionEventArgs e) {
if (e.DashboardItemName == "chartDashboardItem1" && e.GetAxisPoint() != null) {
    XtraForm form = new XtraForm();

win-designer-pivot-as-master-filter/CS/DesignerSample/Form1.cs#L45

csharp
void OnDashboardItemClick(object sender, DashboardItemMouseActionEventArgs e) {
    if(e.DashboardItemName == "pivotDashboardItem1" && !skipFiltering) {
        dashboardDesigner1.BeginUpdateParameters();

winforms-dashboard-obtain-dashboard-item-client-data/VB/Dashboard_ClientDataCards_Win/Form1.vb#L22

vb
Private Sub dashboardViewer1_DashboardItemClick(ByVal sender As Object, ByVal e As DashboardItemMouseActionEventArgs)
    If e.DashboardItemName = "cardDashboardItem1" And e.GetAxisPoint() IsNot Nothing Then
        ' Obtains client data related to the clicked card.

winforms-dashboard-add-custom-interactivity-to-dashboard/VB/Dashboard_CustomVisualInteractivity/Form1.vb#L48

vb
Private Sub dashboardViewer1_DashboardItemClick(ByVal sender As Object, ByVal e As DashboardItemMouseActionEventArgs)
    If e.DashboardItemName = "chartDashboardItem1" AndAlso e.GetAxisPoint() IsNot Nothing Then
        Dim form As New XtraForm()

win-designer-pivot-as-master-filter/VB/DesignerSample/Form1.vb#L47

vb
Private Sub OnDashboardItemClick(ByVal sender As Object, ByVal e As DashboardItemMouseActionEventArgs) Handles dashboardDesigner1.DashboardItemClick
    If e.DashboardItemName = "pivotDashboardItem1" AndAlso (Not skipFiltering) Then
        dashboardDesigner1.BeginUpdateParameters()

See Also

DashboardItemMouseEventArgs Class

DashboardItemMouseEventArgs Members

DevExpress.DashboardWin Namespace