format_run_t

Defined in header: <orcus/spreadsheet/document_types.hpp>

struct format_run_t

Contains formatting properties of a section of a string. This is used in the storage of rich-text strings.

Public Functions

format_run_t()
format_run_t(const format_run_t &other)
~format_run_t()
format_run_t &operator=(const format_run_t &other)
void reset()

Reset the properties to unformatted state.

bool formatted() const

Query whether or not the section contains non-default format properties.

Returns:

true of it’s formatted, otherwise false.

Public Members

std::size_t pos = 0

Position of the section where the formatting starts.

std::size_t size = 0

Length of the section.

std::optional<std::string_view> font

Name of the font.

std::optional<double> font_size

Size of the font.

std::optional<color_t> color

Color of the section.

std::optional<bool> bold

Whether or not the font is bold.

std::optional<bool> italic

Whether or not the font is italic.

std::optional<bool> superscript

Whether or not the font has superscript applied.

std::optional<bool> subscript

Whether or not the font has subscript applied.

strikethrough_t strikethrough

Strikethrough attributes.

underline_t underline