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

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

# ChartStaticText.Color

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

## Color

Gets or sets the chart static text color.

Environments: Desktop supported · CLI works differently · Cloud works differently.

- CLI: Created and kept with all its properties, but never drawn: the CLI displays no chart.
- Cloud: Created and kept with all its properties, but never drawn: the cloud displays no chart.

C#:

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

Python:

```python
chartStaticText.Color: Color
```

### Returns

`Color` — 

### Examples

C#:

```csharp
var text = Chart.DrawStaticText("info", "Spread: " + Symbol.Spread / Symbol.PipSize, VerticalAlignment.Top, HorizontalAlignment.Right, Color.White);
text.Color = Color.Yellow;
Print("Static text color: {0}", text.Color);
```

Python:

```python
text = api.Chart.DrawStaticText("info", f"Spread: {api.Symbol.Spread / api.Symbol.PipSize}", VerticalAlignment.Top, HorizontalAlignment.Right, Color.White)
text.Color = Color.Yellow
api.Print(f"Static text color: {text.Color}")
```

