Skip to main content

Module style

Module style 

Source
Expand description

Cell styles (font, fill, borders, alignment, number format, protection), interned per workbook.

Structs§

Alignment
BorderLine
Borders
DxfStated
The parts a differential format states at a value its Style can’t tell from unset: a dxf’s default parts are unset, so a bold turned off, a face, a size or a protection that matches the defaults would otherwise read as nothing. The values are the style’s own; this records that the format states them, and only where they match the defaults, so a format built in the app and the same format read back from a file stay equal.
Fill
Font
NumFmt
Protection
Style
StyleId
StyleTable
Interned styles. Index 0 is the default (Normal) style.
Theme
Workbook theme: 12 colours and the heading/body fonts.

Enums§

BorderStyle
Color
A colour: explicit RGB, a theme slot with tint, or automatic (black text / no fill).
HAlign
PatternType
Underline
VAlign
VertAlign

Functions§

apply_tint
Tint as in ECMA-376: lighten towards white (positive) or darken (negative) in HSL luminance.