Click or drag to resize

IDisplayHandlerOnAutoResize Method

Version 86.0.240
Called when auto-resize is enabled via IBrowserHost.SetAutoResizeEnabled and the contents have auto-resized.

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: 86.0.240.0 (86.0.240.0)
Syntax
bool OnAutoResize(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	Size newSize
)

Parameters

chromiumWebBrowser
Type: CefSharpIWebBrowser
the ChromiumWebBrowser control
browser
Type: CefSharpIBrowser
the browser object
newSize
Type: CefSharp.StructsSize
will be the desired size in view coordinates

Return Value

Type: Boolean
Return true if the resize was handled or false for default handling.
See Also