ApplicationDraggable.X
property · ApplicationDraggable · cAlgo.API Since 5.2
DesktopCLICloud
Get / set X coordinate (default: 0).
Environment behaviour
CLI — not supported. Never displayed: starts at X=0, Y=0; position changes are not applied and LocationChanged never fires.
Cloud — not supported. Never displayed: starts at X=0, Y=0; position changes are not applied and LocationChanged never fires.
Definition
double X {get; set;}
applicationDraggable.X: float
Returns double
Examples
var draggable = Application.Draggables.Add();
draggable.Child = new TextBlock { Text = SymbolName };
draggable.X = 200;
Print("Draggable X: {0}", draggable.X);
draggable = api.Application.Draggables.Add()
textBlock = TextBlock()
textBlock.Text = api.SymbolName
draggable.Child = textBlock
draggable.X = 200
api.Print(f"Draggable X: {draggable.X}")