Skip to content

Window.Width

property · Window · cAlgo.API

DesktopCLICloud

Get / Set width of the window

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 Width {get; set;}
window.Width: float

Returns double

Examples

var window = new Window { Title = "Wide window", Width = 600, Height = 200 };
window.Show();
Print("Width: {0}", window.Width);
window = Window()
window.Title = "Wide window"
window.Width = 600
window.Height = 200
window.Show()
api.Print(f"Width: {window.Width}")