Skip to contents

`xl_rich_run()` is one fragment of an [xl_rich_string()]: a piece of text plus the font it is drawn in.

Usage

xl_rich_run(text, format = NULL)

Arguments

text

A single non-`NA`, non-empty string.

format

An optional [xl_format]. Only its **font** properties apply (see [xl_font()]); a run has no fill, border, alignment or number format, and supplying one warns. `NULL` draws the run in the cell's own font.

Value

An `xl_rich_run` object.

See also

[xl_rich_string], [xl_format]

Other cell content: is_xl_comment(), xl_cell_general(), xl_comment(), xl_formula(), xl_rich_string()

Examples

xl_rich_run("bold", xl_font(bold = TRUE))
#> <xl_rich_run: "bold" (formatted)>
xl_rich_run("plain")
#> <xl_rich_run: "plain">