Click or drag to resize
Ranorex

FlavorElementHitTest Method

Performs an optional hit test on a point within the element's rectangle. The default implementation returns 'true'.

Namespace:  Ranorex.Core
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
protected virtual bool HitTest(
	Point localPoint
)

Parameters

localPoint
Type: System.DrawingPoint
The point in local coordinates.

Return Value

Type: Boolean
Returns true if the point is within the element, otherwise false.
Remarks
This should return 'false' if the point is transparent regarding to mouse clicks.
See Also