ZoomLevel Property  
 

Sets or returns the current zoom factor, applying page scaling without changing layout.

Syntax

object.ZoomLevel [= value ]

Remarks

The ZoomLevel property changes the zoom level of the current browser window to the specified percentage. A zoom level of 100 represents the default size with no scaling applied. Larger values magnify the content, while smaller values reduce it. The zoom percentage is constrained by the limits defined for the control. The minimum supported zoom level is 25 (25%) and the maximum is 400 (400%). If a value outside of this range is specified, it will be clamped to the nearest valid zoom level.

Changing the zoom level affects how the page content is displayed but does not alter the underlying document. This is equivalent to adjusting the zoom in a standard web browser. The new zoom level applies to the current browser instance and will remain in effect until it is changed again, or the control is destroyed.

The value of the AllowZoom property does not affect your ability to change the zoom level using this property.

Data Type

Integer (Int32)

See Also

AllowZoom Property, ZoomIn Method, ZoomOut Method