Back to Devexpress

SelectionChangedEventArgs.SelectedGroups Property

windowsforms-devexpress-dot-xtratreemap-dot-selectionchangedeventargs-b2b64b1d.md

latest2.9 KB
Original Source

SelectionChangedEventArgs.SelectedGroups Property

Returns the collection of selected group paths.

Namespace : DevExpress.XtraTreeMap

Assembly : DevExpress.XtraTreeMap.v25.2.dll

NuGet Package : DevExpress.TreeMap

Declaration

csharp
public IEnumerable SelectedGroups { get; }
vb
Public ReadOnly Property SelectedGroups As IEnumerable

Property Value

TypeDescription
IEnumerable

Collection of selected group paths.

|

Remarks

The group path consists of data items that this and parent groups visualize. The item order within this collection specifies the nesting level within the Tree Map or Sunburst. For example, the following image demonstrates two selected groups: the “50 - 60 years” and the “70 - 80 years” | “United States” subgroup:

The group path contains a collection with one value equals “50 - 60 years” in the first case. And the second path includes two values: “70 - 80 years” and “United States”.

Note that the data items’ concrete type depends on the controls’ data adapter type:

|

Data Adapter Type

|

Data Item Type

| | --- | --- | |

TreeMapFlatDataAdapter

SunburstFlatDataAdapter

|

Data items are values of data source fields that the adapter’s GroupDataMembers property specifies. The data item order corresponds to the group order in the data member collection.

| |

TreeMapHierarchicalDataAdapter

SunburstHierarchicalDataAdapter

|

Data items are data objects that the hierarchical data adapter provides. The item order is from the parent item to the selected item.

| |

TreeMapItemStorage

SunburstItemStorage

|

TreeMapItems or SunburstItems that the item storage contains. The item order is from the parent item to the selected item.

|

See Also

SelectionChangedEventArgs Class

SelectionChangedEventArgs Members

DevExpress.XtraTreeMap Namespace