TextRun

data class TextRun(val text: String, val inheritedText: TextContext) : ResolvedChild

A run of literal text between/within elements.

Numeric source children are stringified into text. inheritedText is the text context in effect for this run, inherited from the containing element, so a renderer can style the text without re-walking the tree.

Constructors

Link copied to clipboard
constructor(text: String, inheritedText: TextContext)

Properties

Link copied to clipboard

The resolved inherited text properties for this run.

Link copied to clipboard

The literal text to render.