---
id: "P:cAlgo.API.Frame.Width"
kind: "property"
type: "T:cAlgo.API.Frame"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/Chart/Frame/Width/"
---

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

# Frame.Width

Member of [Frame](https://help.ctrader.com/ctrader-algo/references/Plugin/Chart/Frame/index.md).

## Width

Returns current width of frame.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Available to plugins only, and plugins cannot run in the CLI.
- Cloud: Available to plugins only, and plugins cannot run in the cloud.

C#:

```csharp
double Width {get;}
```

Python:

```python
frame.Width: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
var customFrame = ChartManager.AddCustomFrame("My Frame");
Print("Frame width: {0}", customFrame.Width);
```

Python:

```python
customFrame = api.ChartManager.AddCustomFrame("My Frame")
api.Print(f"Frame width: {customFrame.Width}")
```

