All docs
V21.2
21.2
21.1
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

SunburstControl.CalcHitInfo(Point) Method

Returns information about the specified element in the SunburstControl.

Namespace: DevExpress.Xpf.TreeMap

Assembly: DevExpress.Xpf.TreeMap.v21.2.dll

Declaration

public SunburstHitInfo CalcHitInfo(
    Point point
)

Parameters

Name Type Description
point Point

Test point coordinates relative to the Sunburst chart’s top-left corner.

Returns

Type Description
SunburstHitInfo

Contains information about the Sunburst chart’s elements at the test point.

Remarks

The following code invokes a message box when a user double-clicks a Sunburst sector:

<dxtm:SunburstControl x:Name="sunburstControl"
                      MouseDoubleClick="SunburstControl_MouseDoubleClick">
                      <!--...-->
</dxtm:SunburstControl>
private void SunburstControl_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e) {
    SunburstHitInfo hitInfo = sunburstControl.CalcHitInfo(e.GetPosition(sunburstControl));
    if (hitInfo != null) {
        MessageBox.Show($"Sector value: {hitInfo.ItemInfo.Value}");
    }
}
See Also