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

# FontValue

## Overview

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

Represents font value.

This class declares 17 methods for FontValue objects in C++ programs.
Available methods include: `Clone`, `ColorValue`, `FontValue`, `GetBold`, `GetColor`, `GetItalic`, `GetName`, `GetSize`, `GetStrikeThrough`, `GetUnderline`, `SetBold`, `SetColor`, and 5 additional methods.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.
Accessor methods: `ColorValue`.

## Accessor Methods

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `ColorValue` | `ColorValue` | Read | Gets the color value. |

## Methods

| Signature | Description |
|-----------|-------------|
| `ColorValue()` → `ColorValue` | Gets or sets the color. |
| `FontValue()` | Initializes a new instance of the class. |
| `GetName()` → `std::string` | Gets or sets the name. |
| `SetName(value: std::string)` | Sets the name value. |
| `GetSize()` → `double` | Gets or sets the size. |
| `SetSize(value: double)` | Sets the size value. |
| `GetBold()` → `bool` | Gets or sets a value indicating whether bold. |
| `SetBold(value: bool)` | Sets the bold value. |
| `GetItalic()` → `bool` | Gets or sets a value indicating whether italic. |
| `SetItalic(value: bool)` | Sets the italic value. |
| `GetUnderline()` → `bool` | Gets or sets a value indicating whether underline. |
| `SetUnderline(value: bool)` | Sets the underline value. |
| `GetStrikeThrough()` → `bool` | Gets or sets a value indicating whether strike through. |
| `SetStrikeThrough(value: bool)` | Sets the strike through value. |
| `GetColor()` → `ColorValue` | Gets or sets the color. |
| `SetColor(value: ColorValue)` | Sets the color value. |
| `Clone()` → `FontValue` | Creates a copy of the current instance. The font value. |

## See Also

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