---
id: "P:cAlgo.API.ChartColorSettings.ForegroundColor"
kind: "property"
type: "T:cAlgo.API.ChartColorSettings"
url: "https://help.ctrader.com/ctrader-algo/references/Chart/ChartColorSettings/ForegroundColor/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# ChartColorSettings.ForegroundColor

Member of [ChartColorSettings](https://help.ctrader.com/ctrader-algo/references/Chart/ChartColorSettings/index.md).

## ForegroundColor

Gets or sets the color of the chart foreground.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
Color ForegroundColor {get; set;}
```

Python:

```python
chartColorSettings.ForegroundColor: Color
```

### Returns

`Color` — 

### Examples

C#:

```csharp
Chart.ColorSettings.ForegroundColor = Color.WhiteSmoke;
Print("Chart foreground color: {0}", Chart.ColorSettings.ForegroundColor);
```

Python:

```python
api.Chart.ColorSettings.ForegroundColor = Color.WhiteSmoke
api.Print(f"Chart foreground color: {api.Chart.ColorSettings.ForegroundColor}")
```

