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

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

# ChartStaticText.Text

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

## Text

Gets or sets the chart static text content.

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
string Text {get; set;}
```

Python:

```python
chartStaticText.Text: str
```

### Returns

`string` — 

### Examples

C#:

```csharp
var text = Chart.DrawStaticText("info", string.Empty, VerticalAlignment.Top, HorizontalAlignment.Right, Color.White);
text.Text = string.Format("Positions: {0} | Equity: {1}", Positions.Count, Account.Equity);
Print("Static text: {0}", text.Text);
```

Python:

```python
text = api.Chart.DrawStaticText("info", "", VerticalAlignment.Top, HorizontalAlignment.Right, Color.White)
text.Text = f"Positions: {api.Positions.Count} | Equity: {api.Account.Equity}"
api.Print(f"Static text: {text.Text}")
```

