Skip to content

Window.ResizeMode

property · Window · cAlgo.API

DesktopCLICloud

Get / Set the window resize mode

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

Returns ResizeMode

Examples

var window = new Window { Title = "Grip resize", Width = 300, Height = 200, ResizeMode = ResizeMode.CanResizeWithGrip };
window.Show();
Print("Resize mode: {0}", window.ResizeMode);
window = Window()
window.Title = "Grip resize"
window.Width = 300
window.Height = 200
window.ResizeMode = ResizeMode.CanResizeWithGrip
window.Show()
api.Print(f"Resize mode: {window.ResizeMode}")