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

# CellFormatValue

## Overview

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

Represents cell format value.

This class declares 13 methods for CellFormatValue objects in C++ programs.
Available methods include: `CellFormatValue`, `GetAlignment`, `GetBorderId`, `GetFillId`, `GetFontId`, `GetNumFmtId`, `GetProtection`, `SetAlignment`, `SetBorderId`, `SetFillId`, `SetFontId`, `SetNumFmtId`, and 1 additional methods.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

## Methods

| Signature | Description |
|-----------|-------------|
| `CellFormatValue()` | Initializes a new instance of the class. |
| `GetNumFmtId()` → `int` | Gets or sets the num fmt id. |
| `SetNumFmtId(value: int)` | Sets the num fmt id value. |
| `GetFontId()` → `int` | Gets or sets the font id. |
| `SetFontId(value: int)` | Sets the font id value. |
| `GetFillId()` → `int` | Gets or sets the fill id. |
| `SetFillId(value: int)` | Sets the fill id value. |
| `GetBorderId()` → `int` | Gets or sets the border id. |
| `SetBorderId(value: int)` | Sets the border id value. |
| `GetAlignment()` → `Core::AlignmentValue` | Performs alignment value. The alignment value. |
| `SetAlignment(value: Core::AlignmentValue)` | Sets the alignment value. |
| `GetProtection()` → `Core::ProtectionValue` | Performs protection value. The protection value. |
| `SetProtection(value: Core::ProtectionValue)` | Sets the protection value. |

## See Also

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