Table of Contents

Method HitTest

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

HitTest(PointD)

Returns one of Calendar.HitTestResult constants.

public Calendar.HitTestResult HitTest(PointD point)

Parameters

point PointD

Point to check.

Returns

Calendar.HitTestResult

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 PointD

The PointD at which to retrieve item information.

item TreeViewItem

Output parameter. Returns item at the specified point.

locations TreeViewHitTestLocations

Output parameter. Returns point location.

needItem bool

Whether to get item parameter.

Returns

bool

true if item or locations 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.