---
Product: Aspose.Cells
Platform: cpp
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/cpp/xlsxworkbookstyles
---

# XlsxWorkbookStyles

## Overview

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

Provides static methods for building and loading workbook stylesheets.

This class declares 6 methods for XlsxWorkbookStyles objects in C++ programs.
Available methods include: `BuildStylesheet`, `GetStyleForSerialization`, `GetStyleKey`, `LoadStylesheet`, `StylesEqual`, `XlsxWorkbookStyles`.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

## Methods

| Signature | Description |
|-----------|-------------|
| `XlsxWorkbookStyles()` | Calls XlsxWorkbookStyles on this XlsxWorkbookStyles instance. |
| `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). |

## See Also

- [Aspose.Cells — Enterprise API Reference](https://reference.aspose.com/cells/)