Skip to main content

GetTextBounds Method

Get an array of bounding rectangles of a range of characters within a text line.

Definition​

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

public abstract IReadOnlyList<TextBounds> GetTextBounds(
int firstTextSourceCharacterIndex,
int textLength
)
View Source

Parameters​

  Int32
index of first character of specified range
  Int32
number of characters of the specified range

Return Value​

IReadOnlyList(TextBounds)
an array of bounding rectangles.

See Also​

Reference​

TextLine Class
Avalonia.Media.TextFormatting Namespace