---
id: "E:cAlgo.API.DropZone.Dropped"
kind: "event"
type: "T:cAlgo.API.DropZone"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/DropZone/Dropped/"
---

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

# DropZone.Dropped

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

## Dropped

Occurs when files are dropped.

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 event Action<DroppedEventArgs> Dropped;
```

Python:

```python
dropZone.Dropped += handler  # handler(obj: DroppedEventArgs)
```

### Returns

`Action<DroppedEventArgs>` — 

Available since cAlgo.API 5.1.

### Examples

C#:

```csharp
var dropZone = new DropZone { Child = new TextBlock { Text = "Drop files" }, FilterExtensions = new[] { "csv" } };
dropZone.Dropped += args =>
{
    foreach (var filePath in args.FilePaths)
        Print("Dropped: {0}", filePath);
};
Chart.AddControl(dropZone);
```

Python:

```python
def on_start(self):
    dropZone = DropZone()
    child = TextBlock()
    child.Text = "Drop files"
    dropZone.Child = child
    dropZone.Dropped += self.on_dropped
    api.Chart.AddControl(dropZone)

def on_dropped(self, args):
    for filePath in args.FilePaths:
        api.Print(f"Dropped: {filePath}")
```

