Back to Devexpress

DashboardItemSelectionChangedEventArgs.CurrentSelection Property

dashboard-devexpress-dot-dashboardwin-dot-dashboarditemselectionchangedeventargs.md

latest3.9 KB
Original Source

DashboardItemSelectionChangedEventArgs.CurrentSelection Property

Gets currently selected elements.

Namespace : DevExpress.DashboardWin

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

NuGet Package : DevExpress.Win.Dashboard

Declaration

csharp
public List<AxisPointTuple> CurrentSelection { get; }
vb
Public ReadOnly Property CurrentSelection As List(Of AxisPointTuple)

Property Value

TypeDescription
List<AxisPointTuple>

A list of AxisPointTuple objects corresponding to the selected elements.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the CurrentSelection 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-add-custom-interactivity-to-dashboard/CS/Dashboard_CustomVisualInteractivity/Form1.cs#L41

csharp
fieldCategoryName1.FilterValues.Clear();
foreach (AxisPointTuple selectedElement in e.CurrentSelection) {
    string category = selectedElement.GetAxisPoint().DimensionValue.Value.ToString();

winforms-dashboard-designer-custom-interactivity-in-tab-pages/CS/CustomInteractivityExample/Form1.cs#L52

csharp
{
    selectionCache = e.CurrentSelection;
    string companyName = e.CurrentSelection[0].GetAxisPoint().DimensionValue.Value.ToString();

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

vb
fieldCategoryName1.FilterValues.Clear()
For Each selectedElement As AxisPointTuple In e.CurrentSelection
    Dim category As String = selectedElement.GetAxisPoint().DimensionValue.Value.ToString()

winforms-dashboard-designer-custom-interactivity-in-tab-pages/VB/CustomInteractivityExample/Form1.vb#L44

vb
Else
    selectionCache = e.CurrentSelection
    Dim companyName As String = e.CurrentSelection(0).GetAxisPoint().DimensionValue.Value.ToString()

See Also

DashboardItemSelectionChangedEventArgs Class

DashboardItemSelectionChangedEventArgs Members

DevExpress.DashboardWin Namespace