XlsxWorkbookStyles
Overview
XlsxWorkbookStyles is a class in Aspose.Cells FOSS for C++.
Provides static methods for building and loading workbook stylesheets.
Methods
| Signature | Description |
|---|---|
BuildStylesheet(model: Core::WorkbookModel) → StylesheetSaveContext | Builds the stylesheet save context from the workbook model, collecting all fonts, fills, borders, cell formats, and differential formats. |
GetStyleForSerialization(record: Core::CellRecord) → Core::StyleValue | Gets the style value for serialization, adjusting number format for date/time cells that do not already use a date format. |
GetStyleKey(style: Core::StyleValue) → std::string | Computes a canonical string key for the given style value, suitable for use as a dictionary key for deduplication. |
LoadStylesheet(archive: ZipArchive, workbookRelationships: std::unordered_map<std::string, std::string>, options: LoadOptions, diagnostics: LoadDiagnostics) → StylesheetLoadContext | Loads the stylesheet from the archive, parsing cell formats, differential formats, fonts, fills, borders, and number formats. |
StylesEqual(left: Core::StyleValue, right: Core::StyleValue) → bool | Returns true if two style values are equivalent (same canonical key). |