Add bold text.
The text content to render bold.
this for chaining.
Add bold + italic text.
The text content to render bold and italic.
this for chaining.
Build and return the array of rich text runs.
A frozen copy of the runs; later builder calls do not affect it.
Add colored text.
The text content.
Hex RGB (RRGGBB) or ARGB (AARRGGBB) color, e.g. 'FF0000' for red.
this for chaining.
Add italic text.
The text content to render italic.
this for chaining.
Get the plain text content (all runs concatenated, no formatting).
The concatenated plain text of all runs.
Add strikethrough text.
The text content to strike through.
this for chaining.
Add text with custom styling options.
The text content.
Formatting options (bold, italic, underline, strike, fontName, fontSize, color).
this for chaining.
Add plain (unstyled) text.
The text content.
this for chaining.
Add underlined text.
The text content to underline.
this for chaining.
Fluent builder for constructing rich text runs with mixed formatting.
Each method appends a styled text segment and returns
thisfor chaining. Call build to get a frozenreadonly RichTextRun[].Example