Skip to main content

HitTestTextPosition Method

Get the pixel location relative to the top-left of the layout box given the text position.

Definition​

Namespace: Avalonia.Media.TextFormatting
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public Rect HitTestTextPosition(
int textPosition
)

Parameters​

  Int32
The text position.

Return Value​

Rect

See Also​

Reference​

TextLayout Class
Avalonia.Media.TextFormatting Namespace