System.Windows.Forms.ListView.HitTest Method

Provides item information, given a point.

Syntax

public ListViewHitTestInfo HitTest (System.Drawing.Point point)

Parameters

point
The System.Drawing.Point at which to retrieve the item information. The coordinates are relative to the upper-left corner of the control.

Returns

The item information, given a point.

Remarks

Use this method to determine whether a point is in an item or subitem and where in the item the point is located, such as on the label or image area. If the coordinates are located outside the control, the returned System.Windows.Forms.ListViewHitTestInfo object has a ListViewHitTestInfo.Location property of "None"; and the ListViewHitTestInfo.Item and ListViewHitTestInfo.SubItem properties are set to null.

Requirements

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