FormattedText.

HitTestTextPosition(int) Method

Summary

Gets the bounds rectangle that the specified character occupies.
Namespace
Avalonia.Media
Containing Type
FormattedText

Syntax

public Rect HitTestTextPosition(int index)

Parameters

Name Type Description
index int The index of the character.

Return Value

Type Description
Rect The character bounds.