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

# ColorValue

## Overview

`ColorValue` is a struct in Aspose.Cells FOSS for C++.

Represents color value.

This struct declares 7 methods for ColorValue objects in C++ programs.
Available methods include: `ColorValue`, `Equals`, `GetA`, `GetB`, `GetG`, `GetHashCode`, `GetR`.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

## Methods

| Signature | Description |
|-----------|-------------|
| `ColorValue()` | Initializes a new instance of the ColorValue struct. |
| `GetA()` → `std::uint8_t` | Gets the a. |
| `GetR()` → `std::uint8_t` | Gets the r. |
| `GetG()` → `std::uint8_t` | Gets the g. |
| `GetB()` → `std::uint8_t` | Gets the b. |
| `Equals(other: ColorValue)` → `bool` | Determines whether the specified value is equal to the current instance. The other. true if the condition is met; otherwise, false. |
| `GetHashCode()` → `int` | Returns a hash code for the current instance. The hash code. |

## See Also

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