Skip to main content

SetDefaultSize

Description

Sets the default size of the window.

Syntax

// window points to instance of IWindow
await window.SetDefaultSize(width, height, resizeToDefault);

Parameters

NameTypeDescription
widthnumberThe default width size of the dialog.
heightnumberThe default height dialog.
resizeToDefaultbooleanSpecify true to resize the window to the given default size.
If false, the default width and height are kept but resizing to these value is not done. By calling
ResizeToDefaultSize(), the window is resized to default width and height values.

Return type

TypeDescription
Promise < void >Method does not return a value