FormattedText.

HitTestTextRange(int, int) Method

Summary

Gets the bounds rectangles that the specified text range occupies.
Namespace
Avalonia.Media
Containing Type
FormattedText

Syntax

public IEnumerable<Rect> HitTestTextRange(int index, int length)

Parameters

Name Type Description
index int The index of the first character.
length int The number of characters in the text range.

Return Value

Type Description
IEnumerable<Rect> The character bounds.