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

# StylesheetLoadContext

## Overview

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

Internal context used during stylesheet loading to accumulate cell formats, differential formats, date style indexes, and the default cell style.

This class declares 8 methods for StylesheetLoadContext objects in C++ programs.
Available methods include: `GetCellFormats`, `GetDateStyleIndexes`, `GetDefaultCellStyle`, `GetDifferentialFormats`, `SetDefaultCellStyle`.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

## Methods

| Signature | Description |
|-----------|-------------|
| `GetDefaultCellStyle()` → `Core::StyleValue` | Gets or sets the default cell style. Performs StyleValue::Default().Clone(). |
| `SetDefaultCellStyle(value: Core::StyleValue)` | Sets the default cell style value. |
| `GetCellFormats()` → `std::vector<Core::StyleValue>` | Gets the list of cell formats. Initialized with a single StyleValue::Default().Clone(). |
| `GetCellFormats()` → `std::vector<Core::StyleValue>` | Returns the cell formats. |
| `GetDifferentialFormats()` → `std::vector<Core::StyleValue>` | Gets the list of differential formats. |
| `GetDifferentialFormats()` → `std::vector<Core::StyleValue>` | Returns the differential formats. |
| `GetDateStyleIndexes()` → `std::unordered_set<int>` | Gets the set of date style indexes. |
| `GetDateStyleIndexes()` → `std::unordered_set<int>` | Returns the date style indexes. |

## See Also

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