cond_format_value_t

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

struct cond_format_value_t

Stores a single value of a conditional format rule. A value is either an operand of a condition rule, or a threshold of a color scale, data bar or icon set rule.

Public Functions

cond_format_value_t()
cond_format_value_t(const cond_format_value_t &other)
cond_format_value_t(cond_format_value_t &&other)
~cond_format_value_t()
cond_format_value_t &operator=(cond_format_value_t other)
void swap(cond_format_value_t &other) noexcept

Public Members

std::string_view formula

Formula, number or string that defines the value.

cond_format_value_type_t type = cond_format_value_type_t::unknown

Type of the value, when the value is a threshold.

std::optional<color_t> color

Color of the value, when the value is a threshold of a color scale.