TreeViewHitTestInfo::Location Property

 

Gets the location of a hit test on a TreeView control, in relation to the TreeView and the nodes it contains.

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

public:
property TreeViewHitTestLocations Location {
	TreeViewHitTestLocations get();
}

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: