XlsxWorkbookStyles

XlsxWorkbookStyles

Overview

XlsxWorkbookStyles is a class in Aspose.Cells FOSS for C++.

Provides static methods for building and loading workbook stylesheets.

Methods

SignatureDescription
BuildStylesheet(model: Core::WorkbookModel)StylesheetSaveContextBuilds the stylesheet save context from the workbook model, collecting all fonts, fills, borders, cell formats, and differential formats.
GetStyleForSerialization(record: Core::CellRecord)Core::StyleValueGets 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::stringComputes 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)StylesheetLoadContextLoads the stylesheet from the archive, parsing cell formats, differential formats, fonts, fills, borders, and number formats.
StylesEqual(left: Core::StyleValue, right: Core::StyleValue)boolReturns true if two style values are equivalent (same canonical key).

See Also