Click or drag to resize
CanvasTextLayoutHitTest Method (Vector2)
Gets whether the point overlaps with any text in the text layout.

Namespace:  Microsoft.Graphics.Canvas.Text
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public bool HitTest(
	Vector2 point
)

Parameters

point
Type: System.NumericsVector2

Return Value

Type: Boolean
Remarks

Any whitespace before the end of the text, also counts as text.

Hit tests are always performed using layout bounds, not draw bounds. See LayoutBounds.

See Also