CanvasTextLayoutHitTest Method (Vector2, CanvasTextLayoutRegion, Boolean) |
Namespace: Microsoft.Graphics.Canvas.Text
public bool HitTest( Vector2 point, out CanvasTextLayoutRegion textLayoutRegion, out bool trailingSideOfCharacter )
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.