---
id: "P:cAlgo.API.Shape.StrokeColor"
kind: "property"
type: "T:cAlgo.API.Shape"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/Layout/Shapes/Shape/StrokeColor/"
---

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

# Shape.StrokeColor

Member of [Shape](https://help.ctrader.com/ctrader-algo/references/Controls/Layout/Shapes/Shape/index.md).

## StrokeColor

Gets or sets the stroke color.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Accepted without error but never displayed, so control events such as Click are never raised.
- Cloud: Accepted without error but never displayed, so control events such as Click are never raised.

C#:

```csharp
public Color StrokeColor {get; set;}
```

Python:

```python
shape.StrokeColor: Color
```

### Returns

`Color` — 

### Examples

C#:

```csharp
var ellipse = new Ellipse { Width = 60, Height = 60, StrokeColor = Color.Red, StrokeThickness = 3 };
Chart.AddControl(ellipse);
Print("Stroke color: {0}", ellipse.StrokeColor);
```

Python:

```python
ellipse = Ellipse()
ellipse.Width = 60
ellipse.Height = 60
ellipse.StrokeColor = Color.Red
ellipse.StrokeThickness = 3
api.Chart.AddControl(ellipse)
api.Print(f"Stroke color: {ellipse.StrokeColor}")
```

