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

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

# Shape.StrokeStartLineCap

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

## StrokeStartLineCap

Gets or sets the shape at the beginning of a line.

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 PenLineCap StrokeStartLineCap {get; set;}
```

Python:

```python
shape.StrokeStartLineCap: PenLineCap
```

### Returns

`PenLineCap` — 

### Examples

C#:

```csharp
var line = new Line { X1 = 10, Y1 = 10, X2 = 200, Y2 = 10, StrokeColor = Color.White, StrokeThickness = 6, StrokeStartLineCap = PenLineCap.Round };
Chart.AddControl(line);
```

Python:

```python
line = Line()
line.X1 = 10
line.Y1 = 10
line.X2 = 200
line.Y2 = 10
line.StrokeColor = Color.White
line.StrokeThickness = 6
line.StrokeStartLineCap = PenLineCap.Round
api.Chart.AddControl(line)
```

