Description
Scales the current view with the specified zoom ratio.
Applies to
Syntax
controlname.Zoom ( integer zoomlevel )
Argument |
Description |
---|---|
controlname |
The name of the WebBrowser control. |
zoomlevel |
The ratio to zoom the web page. The default zoom ratio is 0. The range of values (in percentage) is 0~500, and 1~99 for reduction. |
Return value
Integer.
Returns 1 if the function succeeds and -1 if an error occurs.
Examples
This example zooms out the screen to 80%:
Integer li_rtn, li_zoom Li_zoom = 80 Li_rtn = wb_1.zoom(li_zoom)
See also