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

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

# Polyline.Points

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

## Points

Gets or sets a collection that contains the vertex points of the Polyline.

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 Point[] Points {get; set;}
```

Python:

```python
polyline.Points: list[Point]
```

### Returns

`Point[]` — 

### Examples

C#:

```csharp
var points = new List<Point>();
for (var i = 0; i < 10; i++)
    points.Add(new Point(i * 10, i % 2 * 20));
var polyline = new Polyline { StrokeColor = Color.Lime, Points = points.ToArray() };
Chart.AddControl(polyline);
Print("Point count: {0}", polyline.Points.Length);
```

Python:

```python
polyline = Polyline()
polyline.StrokeColor = Color.Lime
polyline.Points = [Point(i * 10, i % 2 * 20) for i in range(10)]
api.Chart.AddControl(polyline)
api.Print(f"Point count: {len(polyline.Points)}")
```

