Window.MaxWidth
property · Window · cAlgo.API
DesktopCLICloud
Get / Set the window maximum width
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 MaxWidth {get; set;}
window.MaxWidth: float
Returns double
Examples
var window = new Window { Title = "Resizable", Width = 300, Height = 250, MaxWidth = 800 };
window.Show();
Print("Maximum width: {0}", window.MaxWidth);
window = Window()
window.Title = "Resizable"
window.Width = 300
window.Height = 250
window.MaxWidth = 800
window.Show()
api.Print(f"Maximum width: {window.MaxWidth}")