System.Windows.Forms.TreeView.HitTest Method

Provides node information, given x- and y-coordinates.

Syntax

public TreeViewHitTestInfo HitTest (int x, int y)

Parameters

x
The x-coordinate at which to retrieve node information
y
The y-coordinate at which to retrieve node information.

Returns

The node information.

Remarks

Use this method to determine whether a set of x- and y-coordinates 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