ChartDraggable.Y
property · ChartDraggable · cAlgo.API Since 5.2
DesktopCLICloud
Get / set Y coordinate (default: 0).
Environment behaviour
CLI — not supported. Never displayed: starts at X=0, Y=0; property changes are kept locally only and LocationChanged never fires.
Cloud — not supported. Never displayed: starts at X=0, Y=0; property changes are kept locally only and LocationChanged never fires.
Definition
double Y {get; set;}
chartDraggable.Y: float
Returns double
Examples
var draggable = Chart.Draggables.Add();
draggable.Child = new TextBlock { Text = SymbolName, BackgroundColor = Color.Black };
draggable.Y = 50;
Print("Draggable Y: {0}", draggable.Y);
draggable = api.Chart.Draggables.Add()
textBlock = TextBlock()
textBlock.Text = api.SymbolName
draggable.Child = textBlock
draggable.Y = 50
api.Print(f"Draggable Y: {draggable.Y}")