FormattedTextBuildHighlightGeometry(Point, Int32, Int32) Method

Builds a highlight geometry object for a given character range.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public Geometry? BuildHighlightGeometry(
	Point origin,
	int startIndex,
	int count
)

Parameters

origin  Point
The origin of the highlight region.
startIndex  Int32
The start index of initial character the bounds should be obtained for.
count  Int32
The number of characters the bounds should be obtained for.

Return Value

Geometry
Geometry that surrounds the specified character range.

See Also