Back to API Reference
Struct

TextLine

sealed

Represents a line of text after line breaking.

public bool IsRtl{ get }

True when the line's paragraph base direction is right-to-left (UAX #9 odd embedding level).

public TextRange range

The codepoint range covered by this line.

public int runStart

Index of the first run in the ordered runs buffer for this line.

public int runCount

Number of runs in this line.

public int glyphStart

Index of the first positioned glyph belonging to this line (set during layout).

public int glyphCount

Number of positioned glyphs belonging to this line (set during layout).

public float width

Content width in font units (excluding trailing whitespace).

public float widthPx

Content width in mesh-local pixels (width scaled by font size at layout time, set during layout).

public float trailingWhitespace

Width of trailing whitespace that hangs outside the content box (CSS Text §4.1.3), in font units.

public byte paragraphBaseLevel

The base BiDi level of the paragraph containing this line.

public float startMargin

Left margin for this line (e.g., for list indentation).