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

# Color

## Overview

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

Represents color.

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

## Accessor Methods

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

## Methods

| Signature | Description |
|-----------|-------------|
| `Color()` → `Color` | Gets the empty. |
| `Color()` → `Color` | Creates a color from ARGB components. The a. The r. The g. The b. The color. |
| `Color()` | Initializes a new instance of the Color struct. |
| `Color(a: std::uint8_t, r: std::uint8_t, g: std::uint8_t, b: std::uint8_t)` | Initializes a new instance of the Color struct. The a. The r. The g. The b. |
| `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. |
| `Empty()` → `Color` | Gets the empty. |
| `FromArgb(a: int, r: int, g: int, b: int)` → `Color` | Creates a color from ARGB components. The a. The r. The g. The b. The color. |
| `Equals(other: Color)` → `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. |
| `ToCore()` → `Core::ColorValue` | Conversion to Core::ColorValue. |
| `FromCore(value: Core::ColorValue)` → `Color` | Creates a Color from a Core::ColorValue. |

## See Also

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