Interface IZoom
- Namespace
- DotNetBrowser.Zoom
- Assembly
- DotNetBrowser.dll
Allows zooming content of a web page.
public interface IZoom : IAutoDisposable
- Inherited Members
Remarks
A IZoom instance belongs to a IBrowser instance and can be used only if the IBrowser instance is alive. When the IBrowser instance is closed, IZoom instance automatically updates its internal state and doesn't allow modifying zoom anymore. The ObjectDisposedException will be thrown in this case.
The zoom level is configured for each domain separately, so if you set zoom level for the a.com web page, it will not be applied for the b.com web page. If you change zoom level for one domain and then load another one, then the zoom level for another domain will be default.Properties
- Enabled
Enables or disables zoom changes.
- Level
Gets or sets the zoom level for the currently loaded web page.
Methods
- In()
Updates the zoom level for the currently loaded web page on one step up.
- Out()
Updates the zoom level for the currently loaded web page on one step down.
- Reset()
Resets the zoom level for the currently loaded web page to default value.