Skip to main content

HierarchicalChartControlBase.SelectedGroups Property

Returns information about groups that are currently selected in the TreeMap or Sunburst control.

Namespace: DevExpress.XtraTreeMap

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

Declaration

[Browsable(false)]
[XtraSerializableProperty(XtraSerializationVisibility.Hidden)]
public SelectedGroupCollection SelectedGroups { get; }

Property Value

Type Description
SelectedGroupCollection

The collection of selected groups’ 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:

SelectionChangedEventArgs_SelectedGroups

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