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

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

# ChartHorizontalLine.Thickness

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

## Thickness

Gets or sets the line thickness.

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
int Thickness {get; set;}
```

Python:

```python
chartHorizontalLine.Thickness: int
```

### Returns

`int` — 

### Examples

C#:

```csharp
var line = Chart.DrawHorizontalLine("support", Bars.LowPrices.LastValue, Color.Green);
line.Thickness = 3;
Print("Support line thickness: {0}", line.Thickness);
```

Python:

```python
line = api.Chart.DrawHorizontalLine("support", api.Bars.LowPrices.LastValue, Color.Green)
line.Thickness = 3
api.Print(f"Support line thickness: {line.Thickness}")
```

