TreeViewHitTestInfo::Location Property
.NET Framework (current version)
Gets the location of a hit test on a TreeView control, in relation to the TreeView and the nodes it contains.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Property Value
Type: System.Windows.Forms::TreeViewHitTestLocationsOne of the TreeViewHitTestLocations values.
The following code example demonstrates how to use the Location property. To run this example, paste the following code into a Windows Form that contains a TreeView control named treeView1, and populate the TreeView with items. Ensure that treeview1 and the MouseDown event for the form are associated with the HandleMouseDown method.
.NET Framework
Available since 2.0
Available since 2.0
Show: