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

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

# Polyline.FillRule

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

## FillRule

Gets or sets a FillRule enumeration that specifies how the interior fill of the shape is determined.

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

Python:

```python
polyline.FillRule: FillRule
```

### Returns

`FillRule` — 

### Examples

C#:

```csharp
var polyline = new Polyline { StrokeColor = Color.White, FillColor = Color.FromArgb(80, Color.Blue), FillRule = FillRule.EvenOdd };
polyline.Points = new[] { new Point(0, 0), new Point(100, 100), new Point(100, 0), new Point(0, 100) };
Chart.AddControl(polyline);
```

Python:

```python
polyline = Polyline()
polyline.StrokeColor = Color.White
polyline.FillColor = Color.FromArgb(80, Color.Blue)
polyline.FillRule = FillRule.EvenOdd
polyline.Points = [Point(0, 0), Point(100, 100), Point(100, 0), Point(0, 100)]
api.Chart.AddControl(polyline)
```

