Skip to content

Window.WindowState

property · Window · cAlgo.API

DesktopCLICloud

Get / Set the window state

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

Returns WindowState

Examples

var window = new Window { Title = "Log", Width = 400, Height = 300 };
window.Show();
window.WindowState = WindowState.Minimized;
Print("Window state: {0}", window.WindowState);
window = Window()
window.Title = "Log"
window.Width = 400
window.Height = 300
window.Show()
window.WindowState = WindowState.Minimized
api.Print(f"Window state: {window.WindowState}")