pub struct CellStyle {
pub font_color: Option<String>,
pub bg_color: Option<String>,
pub bold: Option<bool>,
pub italic: Option<bool>,
pub underline: Option<bool>,
pub font_family: Option<String>,
pub font_size: Option<f64>,
pub num_format: Option<String>,
}Expand description
Cell formatting style attributes (font color, background color, font styles, font family, font size).
Fields§
§font_color: Option<String>Font color as Hex (e.g. “#FF0000” or “FF0000”) or standard color name (“red”, “blue”, etc.)
bg_color: Option<String>Background fill color as Hex or color name
bold: Option<bool>Bold text style flag
italic: Option<bool>Italic text style flag
underline: Option<bool>Underline text style flag
font_family: Option<String>Font family name (e.g. “Arial”, “Calibri”, “Courier New”)
font_size: Option<f64>Font size in points (e.g. 11, 12, 14.5).
f64 rather than an integer because Excel’s is: Font.Size reports
as a Double and a half-point size round-trips (.Font.Size = 10.5
reads back as 10.5), both measured with fuzz/vba_style_probe.py.
num_format: Option<String>Excel number-format code (e.g. m/d/yy, yyyy-mm-dd).
This is how a date cell remembers the notation it was written in: the
value stays a plain numeric serial, exactly as in Excel, and the format
governs only how it renders. See core::date.