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

# StyleValueSanitizer

## Overview

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

Provides normalization helpers for style integer values.

This class declares 3 methods for StyleValueSanitizer objects in C++ programs.
Available methods include: `NormalizeIndentLevel`, `NormalizeReadingOrder`, `NormalizeTextRotation`.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

## Methods

| Signature | Description |
|-----------|-------------|
| `NormalizeIndentLevel(value: std::optional<int>)` → `int` | Normalizes an indent level value to the valid range [0, 250]. Returns 0 if the value is absent or out of range. |
| `NormalizeReadingOrder(value: std::optional<int>)` → `int` | Normalizes a reading order value to the valid range [0, 2]. Returns 0 if the value is absent or out of range. |
| `NormalizeTextRotation(value: std::optional<int>)` → `int` | Normalizes a text rotation value. Accepts 255 (vertical text) or [0, 180]. Returns 0 if the value is absent or out of range. |

## See Also

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