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
pointPointDThe PointD at which to retrieve item information.
itemTreeViewItemOutput parameter. Returns item at the specified point.
locationsTreeViewHitTestLocationsOutput parameter. Returns point location.
needItemboolWhether to get
itemparameter.
Returns
- bool
trueifitemorlocationsis 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.