Back to API Reference
Struct

TextRun

sealed

Represents a segment of text with uniform script, direction, and font before shaping.

Remarks

Created during itemization to split text into homogeneous segments that can be shaped independently.
public TextDirection Direction{ get }

Gets the text direction derived from the BiDi level.

public TextRange range

The codepoint range covered by this run.

public byte bidiLevel

The BiDi embedding level (odd = RTL, even = LTR).

public byte language

Language registry index for the OpenType language tag applied during shaping. 0 = unset.

public UnicodeScript script

The Unicode script of this run.

public int fontId

The font ID to use for shaping this run.