Back to Devexpress

SunburstItemGroupInfo.GroupLevel Property

windowsforms-devexpress-dot-xtratreemap-dot-sunburstitemgroupinfo.md

latest2.8 KB
Original Source

SunburstItemGroupInfo.GroupLevel Property

Returns the parent group’s nesting level.

Namespace : DevExpress.XtraTreeMap

Assembly : DevExpress.XtraTreeMap.v25.2.dll

NuGet Package : DevExpress.TreeMap

Declaration

csharp
public int GroupLevel { get; }
vb
Public ReadOnly Property GroupLevel As Integer

Property Value

TypeDescription
Int32

The parent group’s nesting level.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GroupLevel 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-custom-items-extension/CS/CustomItemExtension/CustomItems/SunburstChart/SunburstItemControlProvider.cs#L153

csharp
public Color GetItemColor(ISunburstItem item, SunburstItemGroupInfo group) {
    if(group.GroupLevel < maxcoloringIndex) {
        int alpha = 255 * (group.MaxGroupLevel - group.GroupLevel + 1) / (group.MaxGroupLevel + 1);

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

vb
Public Function GetItemColor(ByVal item As ISunburstItem, ByVal group As SunburstItemGroupInfo) As Color Implements ISunburstColorizer.GetItemColor
    If group.GroupLevel < maxcoloringIndex Then
        Dim alpha As Integer = 255 * (group.MaxGroupLevel - group.GroupLevel + 1) / (group.MaxGroupLevel + 1)

See Also

SunburstItemGroupInfo Struct

SunburstItemGroupInfo Members

DevExpress.XtraTreeMap Namespace