WindowresizeTo Method (Int32, Int32, String, AckCallback, AckCallback) |
Resizes the window to the specified dimensions.
Namespace:
Openfin.Desktop
Assembly:
OpenfinDesktop (in OpenfinDesktop.dll) Version: 17.6.0
Syntax public void resizeTo(
int width,
int height,
string anchor,
AckCallback callback = null,
AckCallback errorCallback = null
)
Parameters
- width
- Type: SystemInt32
The width of the window. - height
- Type: SystemInt32
The height of the window. - anchor
- Type: SystemString
Specifies a corner to remain fixed during the resize.
Can take the values:
"top-left"
"top-right"
"bottom-left"
"bottom-right"
If undefined, the default is "top-left".
- callback (Optional)
- Type: Openfin.DesktopAckCallback
(Optional) A function that is called if the method succeeds.
- errorCallback (Optional)
- Type: Openfin.DesktopAckCallback
(Optional) A function that is called if the method fails.
The reason for failure is passed as an argument.
See Also