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

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

# ChartVerticalLine.Color

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

## Color

Gets or sets the line 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
chartVerticalLine.Color: Color
```

### Returns

`Color` — 

### Examples

C#:

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

Python:

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

