---
id: "T:cAlgo.API.DroppedEventArgs"
kind: "class"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/EventArgs/DroppedEventArgs/"
---

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

# DroppedEventArgs (class)

Provides data for the Dropzone Dropped event.

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

- CLI: Never raised in the CLI: the events that pass it never fire there (DropZone.Dropped).
- Cloud: Never raised in the cloud: the events that pass it never fire there (DropZone.Dropped).

## Definition

```csharp
public class DroppedEventArgs
```

Available since cAlgo.API 5.1.

## Examples

C#:

```csharp
protected override void OnStart()
{
    var dropZone = new DropZone { Child = new TextBlock { Text = "Drop files here" } };
    dropZone.Dropped += OnDropZoneDropped;
    Chart.AddControl(dropZone);
}

private void OnDropZoneDropped(DroppedEventArgs args)
{
    Print("{0} file(s) dropped", args.FilePaths.Count);
}
```

Python:

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

def on_drop_zone_dropped(self, args):
    api.Print(f"{args.FilePaths.Count} file(s) dropped")
```

## Properties

- `public DropZone DropZone {get;}` — Gets the Dropzone control. [details](https://help.ctrader.com/ctrader-algo/references/EventArgs/DroppedEventArgs/DropZone/index.md)
- `public IReadonlyList<string> FilePaths {get;}` — Gets the dropped file paths. [details](https://help.ctrader.com/ctrader-algo/references/EventArgs/DroppedEventArgs/FilePaths/index.md)

