WebBrowserExtensionsSetZoomLevel Method (IBrowser, Double) |
Version 92.0.260
Change the ZoomLevel to the specified value. Can be set to 0.0 to clear the zoom level.
Namespace:
CefSharp
Assembly:
CefSharp (in CefSharp.dll) Version: 92.0.260.0 (92.0.260.0)
Syntax public static void SetZoomLevel(
this IBrowser cefBrowser,
double zoomLevel
)
public:
[ExtensionAttribute]
static void SetZoomLevel(
IBrowser^ cefBrowser,
double zoomLevel
)
Parameters
- cefBrowser
- Type: CefSharpIBrowser
The ChromiumWebBrowser instance this method extends. - zoomLevel
- Type: SystemDouble
zoom level.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IBrowser. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Remarks
If called on the CEF UI thread the change will be applied immediately. Otherwise, the change will be applied asynchronously
on the CEF UI thread. The CEF UI thread is different to the WPF/WinForms UI Thread.
See Also