Back to Devexpress

HierarchicalChartControlBase.SelectionChanged Event

windowsforms-devexpress-dot-xtratreemap-dot-hierarchicalchartcontrolbase-78ac039a.md

latest3.3 KB
Original Source

HierarchicalChartControlBase.SelectionChanged Event

Fires after the selection has been changed.

Namespace : DevExpress.XtraTreeMap

Assembly : DevExpress.XtraTreeMap.v25.2.UI.dll

NuGet Package : DevExpress.Win.TreeMap

Declaration

csharp
public event SelectionChangedEventHandler SelectionChanged
vb
Public Event SelectionChanged As SelectionChangedEventHandler

Event Data

The SelectionChanged event's data class is SelectionChangedEventArgs. The following properties provide information specific to this event:

PropertyDescription
SelectedGroupsReturns the collection of selected group paths.
SelectedItemsReturns the collection of selected items.

Remarks

Handle the HierarchicalChartControlBase.SelectionChanged event to perform specific actions when the Tree Map’s or the Sunburst’s selection changes.

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

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-custom-items-extension/CS/CustomItemExtension/CustomItems/SunburstChart/SunburstItemControlProvider.cs#L37

csharp
sunburst.ToolTipController = toolTipController;
sunburst.SelectionChanged += Sunburst_SelectionChanged;
emptyTitle = new Title() { Visible = false };

winforms-dashboard-custom-items-extension/VB/CustomItemExtension/CustomItems/SunburstChart/SunburstItemControlProvider.vb#L43

vb
sunburst.ToolTipController = toolTipController
AddHandler sunburst.SelectionChanged, AddressOf Sunburst_SelectionChanged
emptyTitle = New Title() With {.Visible = False}

See Also

HierarchicalChartControlBase Class

HierarchicalChartControlBase Members

DevExpress.XtraTreeMap Namespace