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

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

# Shape.StrokeMiterLimit

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

## StrokeMiterLimit

Gets or sets a limit on the ratio of the miter length to half the StrokeThickness of a Shape element.

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

Python:

```python
shape.StrokeMiterLimit: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
var polyline = new Polyline { StrokeColor = Color.Orange, StrokeThickness = 8, StrokeLineJoin = PenLineJoin.Miter, StrokeMiterLimit = 2 };
polyline.Points = new[] { new Point(0, 60), new Point(10, 0), new Point(20, 60) };
Chart.AddControl(polyline);
```

Python:

```python
polyline = Polyline()
polyline.StrokeColor = Color.Orange
polyline.StrokeThickness = 8
polyline.StrokeLineJoin = PenLineJoin.Miter
polyline.StrokeMiterLimit = 2
polyline.Points = [Point(0, 60), Point(10, 0), Point(20, 60)]
api.Chart.AddControl(polyline)
```

