---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/FontColor
---

# FontColor

## Overview

`FontColor` is a class in Aspose.PDF FOSS for .NET.

Represents a font color using RGB components.

This class provides 2 methods for working with FontColor objects in .NET programs.
Available methods include: `FontColor`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: `Blue`, `Green`, `Red`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `Red` | `int` | Read/Write | Red component (0-255). |
| `Green` | `int` | Read/Write | Green component (0-255). |
| `Blue` | `int` | Read/Write | Blue component (0-255). |

## Methods

| Signature | Description |
|-----------|-------------|
| `FontColor()` | Default-constructed black colour. |
| `FontColor(r: int, g: int, b: int)` | Create a new FontColor from RGB components. |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)