Method HitTest
HitTest(PointD)
Returns one of Calendar.HitTestResult constants.
public Calendar.HitTestResult HitTest(PointD point)
Parameters
point
PointDPoint to check.
Returns
Remarks
Not implemented on Linux currently.
HitTest(PointD, out TreeViewItem?, out TreeViewHitTestLocations, bool)
Provides tree view item information, at a given client point, in device-independent units.
public bool HitTest(PointD point, out TreeViewItem? item, out TreeViewHitTestLocations locations, bool needItem = true)
Parameters
point
PointDThe PointD at which to retrieve item information.
item
TreeViewItemOutput parameter. Returns item at the specified point.
locations
TreeViewHitTestLocationsOutput parameter. Returns point location.
needItem
boolWhether to get
item
parameter.
Returns
- bool
true
ifitem
orlocations
is not empty;false
otherwise.
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.