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

# StyleValue

## Overview

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

Represents style value.

This class declares 27 methods for StyleValue objects in C++ programs.
Available methods include: `AlignmentValue`, `BordersValue`, `Clone`, `ColorValue`, `Default`, `FillPatternKind`, `FontValue`, `GetAlignment`, `GetBackgroundColor`, `GetBorders`, `GetFont`, `GetForegroundColor`, and 14 additional methods.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.
Accessor methods: `AlignmentValue`, `BordersValue`, `ColorValue`, `FillPatternKind`, `FontValue`, `NumberFormatValue`, and 1 more.

## Accessor Methods

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `FontValue` | `FontValue` | Read | Gets the font value. |
| `FillPatternKind` | `FillPatternKind` | Read | Gets the fill pattern kind. |
| `ColorValue` | `ColorValue` | Read | Gets the color value. |
| `BordersValue` | `BordersValue` | Read | Gets the borders value. |
| `AlignmentValue` | `AlignmentValue` | Read | Gets the alignment value. |
| `ProtectionValue` | `ProtectionValue` | Read | Gets the protection value. |
| `NumberFormatValue` | `NumberFormatValue` | Read | Gets the number format value. |

## Methods

| Signature | Description |
|-----------|-------------|
| `FontValue()` → `FontValue` | Performs font value. |
| `FillPatternKind()` → `FillPatternKind` | Gets or sets the pattern. |
| `ColorValue()` → `ColorValue` | Gets or sets the foreground color. |
| `ColorValue()` → `ColorValue` | Gets or sets the background color. |
| `BordersValue()` → `BordersValue` | Performs borders value. |
| `AlignmentValue()` → `AlignmentValue` | Performs alignment value. |
| `ProtectionValue()` → `ProtectionValue` | Performs protection value. |
| `NumberFormatValue()` → `NumberFormatValue` | Performs number format value. |
| `StyleValue()` | Initializes a new instance of the class. |
| `Default()` → `StyleValue` | Gets the default. |
| `GetFont()` → `FontValue` | Performs font value. |
| `SetFont(value: FontValue)` | Sets the font value. |
| `GetPattern()` → `FillPatternKind` | Gets or sets the pattern. |
| `SetPattern(value: FillPatternKind)` | Sets the pattern value. |
| `GetForegroundColor()` → `ColorValue` | Gets or sets the foreground color. |
| `SetForegroundColor(value: ColorValue)` | Sets the foreground color value. |
| `GetBackgroundColor()` → `ColorValue` | Gets or sets the background color. |
| `SetBackgroundColor(value: ColorValue)` | Sets the background color value. |
| `GetBorders()` → `BordersValue` | Performs borders value. |
| `SetBorders(value: BordersValue)` | Sets the borders value. |
| `GetAlignment()` → `AlignmentValue` | Performs alignment value. |
| `SetAlignment(value: AlignmentValue)` | Sets the alignment value. |
| `GetProtection()` → `ProtectionValue` | Performs protection value. |
| `SetProtection(value: ProtectionValue)` | Sets the protection value. |
| `GetNumberFormat()` → `NumberFormatValue` | Performs number format value. |
| `SetNumberFormat(value: NumberFormatValue)` | Sets the number format value. |
| `Clone()` → `StyleValue` | Creates a copy of the current instance. The style value. |

## See Also

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