TreeView.HitTest Method (Point)

 

Provides node information, given a point.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public TreeViewHitTestInfo HitTest(
	Point pt
)

Parameters

pt
Type: System.Drawing.Point

The Point at which to retrieve node information.

Return Value

Type: System.Windows.Forms.TreeViewHitTestInfo

The node information.

Use this method to determine whether a point is located in a TreeNode and where within the node the point is located, such as on the label or image area.

.NET Framework
Available since 2.0
Return to top
Show: