Method HitTest
HitTest(PointD, out TreeViewItem?, out TreeViewHitTestLocations, bool)
Provides tree view item information, at a given client point, in device-independent units.
bool HitTest(PointD point, out TreeViewItem? item, out TreeViewHitTestLocations locations, bool needItem = true)Parameters
- pointPointD
- The PointD at which to retrieve item information. 
- itemTreeViewItem
- Output parameter. Returns item at the specified point. 
- locationsTreeViewHitTestLocations
- Output parameter. Returns point location. 
- needItembool
- Whether to get - itemparameter.
Returns
- bool
- trueif- itemor- locationsis not empty;- falseotherwise.
Remarks
Use this method to determine whether a point is located in a TreeViewItem and where within the item the point is located, such as on the label or image area.