ChromiumWebBrowserResizeAsync Method |
Version 130.1.90
Resize the browser
Namespace: CefSharp.OffScreenAssembly: CefSharp.OffScreen (in CefSharp.OffScreen.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax public Task ResizeAsync(
int width,
int height,
float? deviceScaleFactor = null
)
public:
Task^ ResizeAsync(
int width,
int height,
Nullable<float> deviceScaleFactor = nullptr
)
Parameters
- width Int32
- width
- height Int32
- height
- deviceScaleFactor NullableSingle (Optional)
- device scale factor
Return Value
TaskA task that can be awaited and will resolve when the desired size is achieved.
Remarks
The current implementation is fairly symplistic, it simply resizes the browser
and resolves the task when the browser starts painting at the desired size.
See Also