Skip to main content

BuildHighlightGeometry(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)

public Geometry? BuildHighlightGeometry(
Point origin,
int startIndex,
int count
)

Parameters​

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

Return Value​

Geometry
Geometry that surrounds the specified character range.

See Also​

Reference​

FormattedText Class
BuildHighlightGeometry Overload
Avalonia.Media Namespace