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

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

# Polygon.Points

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

## Points

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

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
polygon.Points: list[Point]
```

### Returns

`Point[]` — 

### Examples

C#:

```csharp
var polygon = new Polygon { FillColor = Color.Gold };
polygon.Points = new[] { new Point(0, 50), new Point(50, 0), new Point(100, 50), new Point(50, 100) };
Chart.AddControl(polygon);
Print("Vertex count: {0}", polygon.Points.Length);
```

Python:

```python
polygon = Polygon()
polygon.FillColor = Color.Gold
polygon.Points = [Point(0, 50), Point(50, 0), Point(100, 50), Point(50, 100)]
api.Chart.AddControl(polygon)
api.Print(f"Vertex count: {len(polygon.Points)}")
```

