Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Thetype exposes the following members.
|Item||Gets the ListViewItem at the position indicated by a hit test on a ListView.|
|Location||Gets the location of a hit test on a ListView control, in relation to the ListView and the items it contains.|
|SubItem||Gets the ListViewItem.ListViewSubItem at the position indicated by a hit test on a ListView.|
|Equals(Object)||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as the default hash function. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
The following code example demonstrates using the class and the HitTest method to determine the location of a MouseDown event. To run this code, paste it into a Windows Form that contains a ListView named listView1 that is populated with items. Associate the MouseDown event for the form and listView1 with the HandleMouseDown method in this example.