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

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

# ChartVerticalLine.Thickness

Member of [ChartVerticalLine](https://help.ctrader.com/ctrader-algo/references/Chart/Drawings/ChartVerticalLine/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
chartVerticalLine.Thickness: int
```

### Returns

`int` — 

### Examples

C#:

```csharp
var line = Chart.DrawVerticalLine("sessionStart", Bars.OpenTimes.LastValue, Color.Gray);
line.Thickness = 2;
Print("Vertical line thickness: {0}", line.Thickness);
```

Python:

```python
line = api.Chart.DrawVerticalLine("sessionStart", api.Bars.OpenTimes.LastValue, Color.Gray)
line.Thickness = 2
api.Print(f"Vertical line thickness: {line.Thickness}")
```

