Click or drag to resize

IZoom Interface

Allows zooming content of a web page.

Namespace:  DotNetBrowser.Zoom
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.16.0
Syntax
C#
public interface IZoom : IAutoDisposable

The IZoom type exposes the following members.

Properties
  NameDescription
Public propertyBrowser
Gets the IBrowser instance associated with this object.
Public propertyEnabled
Enables or disables zoom changes.
Public propertyIsDisposed
Indicates if the object is already disposed.
(Inherited from IAutoDisposable.)
Public propertyLevel
Gets or sets the zoom level for the currently loaded web page.
Top
Methods
  NameDescription
Public methodIn
Updates the zoom level for the currently loaded web page on one step up.
Public methodOut
Updates the zoom level for the currently loaded web page on one step down.
Public methodReset
Resets the zoom level for the currently loaded web page to default value.
Top
Events
  NameDescription
Public eventDisposed
Occurs when the object has been disposed.
(Inherited from IAutoDisposable.)
Top
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 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.

See Also