---
id: "P:cAlgo.API.ChartSizeEventArgs.Area"
kind: "property"
type: "T:cAlgo.API.ChartSizeEventArgs"
url: "https://help.ctrader.com/ctrader-algo/references/EventArgs/ChartSizeEventArgs/Area/"
---

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

# ChartSizeEventArgs.Area

Member of [ChartSizeEventArgs](https://help.ctrader.com/ctrader-algo/references/EventArgs/ChartSizeEventArgs/index.md).

## Area

Gets the chart area.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public ChartArea Area {get;}
```

Python:

```python
chartSizeEventArgs.Area: ChartArea
```

### Returns

`ChartArea` — 

### Examples

C#:

```csharp
protected override void OnStart()
{
    Chart.SizeChanged += OnChartSizeChanged;
}

private void OnChartSizeChanged(ChartSizeEventArgs args)
{
    Print("Resized area: {0} x {1}", args.Area.Width, args.Area.Height);
}
```

Python:

```python
def on_start(self):
    api.Chart.SizeChanged += self.on_chart_size_changed

def on_chart_size_changed(self, args):
    api.Print(f"Resized area: {args.Area.Width} x {args.Area.Height}")
```

