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

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

# FrameAttachedEventArgs.Frame

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

## Frame

Returns the 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
public Frame Frame {get;}
```

Python:

```python
frameAttachedEventArgs.Frame: Frame
```

### Returns

`Frame` — 

### Examples

C#:

```csharp
protected override void OnStart()
{
    var frame = ChartManager.AddChartFrame("EURUSD", TimeFrame.Hour);
    frame.Attached += OnFrameAttached;
}

private void OnFrameAttached(FrameAttachedEventArgs args)
{
    Print("Frame {0} attached: {1}, index: {2}", args.Frame.Id, args.Frame.IsAttached, args.Frame.Index);
}
```

Python:

```python
def on_start(self):
    frame = api.ChartManager.AddChartFrame("EURUSD", TimeFrame.Hour)
    frame.Attached += self.on_frame_attached

def on_frame_attached(self, args):
    api.Print(f"Frame {args.Frame.Id} attached: {args.Frame.IsAttached}, index: {args.Frame.Index}")
```

