---
id: "P:cAlgo.API.ApplicationDraggable.X"
kind: "property"
type: "T:cAlgo.API.ApplicationDraggable"
url: "https://help.ctrader.com/ctrader-algo/references/Application/ApplicationDraggable/X/"
---

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

# ApplicationDraggable.X

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

## X

Get / set X coordinate (default: 0).

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

- CLI: Never displayed: starts at X=0, Y=0; position changes are not applied and LocationChanged never fires.
- Cloud: Never displayed: starts at X=0, Y=0; position changes are not applied and LocationChanged never fires.

C#:

```csharp
double X {get; set;}
```

Python:

```python
applicationDraggable.X: float
```

### Returns

`double` — 

Available since cAlgo.API 5.2.

### Examples

C#:

```csharp
var draggable = Application.Draggables.Add();
draggable.Child = new TextBlock { Text = SymbolName };
draggable.X = 200;
Print("Draggable X: {0}", draggable.X);
```

Python:

```python
draggable = api.Application.Draggables.Add()
textBlock = TextBlock()
textBlock.Text = api.SymbolName
draggable.Child = textBlock
draggable.X = 200
api.Print(f"Draggable X: {draggable.X}")
```

