Workbook.materialize_pending_style_components()

Register shared style parts for styleable from deferred assignments.

Usage

Source

Workbook.materialize_pending_style_components(styleable)

Styling attributes on cells and dimensions defer pushing fonts, fills, borders, number formats, alignments, protections, and named styles into the workbook until this method runs or until ~fastpyxl.styles.styleable.StyleableObject.style_id is read.

Saving a workbook calls this automatically for every standard worksheet, in the same order as sheet XML serialization, so shared-table indices stay stable. Write-only streams still resolve styles when each row is written.