Skip to content

Window.Top

property · Window · cAlgo.API

DesktopCLICloud

Get / Set window top margin (Y)

Environment behaviour

CLI — not supported. Never shown: Show, Hide and Close send nothing; IsVisible stays false and window events never fire.

Cloud — not supported. Never shown: Show, Hide and Close send nothing; IsVisible stays false and window events never fire.

Definition

public double Top {get; set;}
window.Top: float

Returns double

Examples

var window = new Window { Title = "Alerts", Width = 250, Height = 150, Left = 50, Top = 300 };
window.Show();
Print("Top: {0}", window.Top);
window = Window()
window.Title = "Alerts"
window.Width = 250
window.Height = 150
window.Left = 50
window.Top = 300
window.Show()
api.Print(f"Top: {window.Top}")