Back to Devexpress

TreeMapControl.CalcHitInfo(Point) Method

wpf-devexpress-dot-xpf-dot-treemap-dot-treemapcontrol-dot-calchitinfo-x28-system-dot-windows-dot-point-x29.md

latest1.8 KB
Original Source

TreeMapControl.CalcHitInfo(Point) Method

Returns information about the TreeMap item located at the specified point.

Namespace : DevExpress.Xpf.TreeMap

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

NuGet Package : DevExpress.Wpf.TreeMap

Declaration

csharp
public TreeMapHitInfo CalcHitInfo(
    Point point
)
vb
Public Function CalcHitInfo(
    point As Point
) As TreeMapHitInfo

Parameters

NameTypeDescription
pointPoint

A Point structure specifying the test point coordinates relative to the control’s top-left corner.

|

Returns

TypeDescription
TreeMapHitInfo

A TreeMapHitInfo object that contains information about TreeMap item located at the test point.

|

Remarks

Use the CalcHitInfo method to determine which item is under the specific point. For instance, this method can be used when handling the Control’s Click event to determine which item was clicked. In such instances, you will pass the current mouse pointer’s coordinates as the method’s parameter.

See Also

TreeMapControl Class

TreeMapControl Members

DevExpress.Xpf.TreeMap Namespace