Skip to main content

TextBounds Class

Definition​

Assembly:Avalonia.Base
Package:Avalonia

The bounding rectangle of a range of characters

public class TextBounds

Inheritance: object -> TextBounds

Properties​

NameDescription
FlowDirectionText flow direction inside the boundary rectangle
RectangleBounds rectangle
TextRunBoundsGet a list of run bounding rectangles

FlowDirection Property​

Text flow direction inside the boundary rectangle

public Avalonia.Media.FlowDirection FlowDirection { get; set; }

Rectangle Property​

Bounds rectangle

public Avalonia.Rect Rectangle { get; set; }

TextRunBounds Property​

Get a list of run bounding rectangles

public System.Collections.Generic.IList<Avalonia.Media.TextFormatting.TextRunBounds> TextRunBounds { get; set; }

Returns​

Array of text run bounds