System.Windows.Forms.TreeView.HitTest Method

Provides node information, given a point.

Syntax

public TreeViewHitTestInfo HitTest (System.Drawing.Point pt)

Parameters

pt
The System.Drawing.Point at which to retrieve node information.

Returns

The node information.

Remarks

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

Requirements

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