Skip to main content

Module style

Module style 

Source
Expand description

Style builder and runtime management.

Provides high-level, ergonomic style types that map to the low-level XML stylesheet structures in sheetkit-xml. Styles are registered in the stylesheet with deduplication: identical style components share the same index.

Modules§

builtin_num_fmts
Built-in number format IDs.

Structs§

AlignmentStyle
Alignment style definition.
BorderSideStyle
Border side style definition.
BorderStyle
Border style definition.
FillStyle
Fill style definition.
FontStyle
Font style definition.
GradientFillStyle
Gradient fill style definition.
GradientStop
A single stop in a gradient fill.
ProtectionStyle
Protection style definition.
Style
User-facing style definition.
StyleBuilder
Builder for creating Style objects with a fluent API.

Enums§

BorderLineStyle
Border line style.
GradientType
Gradient type.
HorizontalAlign
Horizontal alignment.
NumFmtStyle
Number format style.
PatternType
Pattern fill type.
StyleColor
Color specification.
VerticalAlign
Vertical alignment.

Functions§

add_style
Convert a high-level Style to XML components and register in the stylesheet. Returns the style ID (index into cellXfs).
get_style
Get the Style from a style ID (reverse lookup from XML components).