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

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

# ChartText.Angle

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

## Angle

Gets or sets the rotation angle of the text in degrees, measured clockwise around the text anchor point. The text can be fully rotated; any value is accepted and normalized to the 0 to 360 range. The default value is 0, which renders horizontal text.

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
double Angle {get; set;}
```

Python:

```python
chartText.Angle: float
```

### Returns

`double` — 

Available since cAlgo.API 5.10.

### Examples

C#:

```csharp
// Draw text and rotate it 45 degrees.
var text = Chart.DrawText("angled", "Trend Line", Bars.OpenTimes.LastValue, Bars.HighPrices.LastValue, Color.White);
text.Angle = 45;
```

Python:

```python
import clr
clr.AddReference("cAlgo.API")
from cAlgo.API import *
from robot_wrapper import *

class Test():
    def on_start(self):
        text = api.Chart.DrawText("angled", "Trend Line", api.Bars.OpenTimes.LastValue, api.Bars.HighPrices.LastValue, Color.White)
        text.Angle = 45
```

