---
id: "M:cAlgo.API.ApplicationDraggables.Add"
kind: "method"
type: "T:cAlgo.API.ApplicationDraggables"
url: "https://help.ctrader.com/ctrader-algo/references/Application/ApplicationDraggables/Add/"
---

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

# ApplicationDraggables.Add

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

## Add()

Adds a draggable to application.

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

- CLI: Add returns a draggable that is never displayed; Remove sends nothing to the application.
- Cloud: Add returns a draggable that is never displayed; Remove sends nothing to the application.

C#:

```csharp
ApplicationDraggable Add()
```

Python:

```python
applicationDraggables.Add() -> ApplicationDraggable
```

### Returns

`ApplicationDraggable` — Draggable

Available since cAlgo.API 5.2.

### Examples

C#:

```csharp
var draggable = Application.Draggables.Add();
draggable.Child = new TextBlock { Text = "Spread: " + Symbol.Spread / Symbol.PipSize, Margin = 5 };
```

Python:

```python
draggable = api.Application.Draggables.Add()
textBlock = TextBlock()
textBlock.Text = f"Spread: {api.Symbol.Spread / api.Symbol.PipSize}"
textBlock.Margin = Thickness(5)
draggable.Child = textBlock
```

