Zoom

Description

Scales the current view with the specified zoom ratio.

Applies to

WebBrowser controls

Syntax

controlname.Zoom ( integer zoomlevel )

Argument

Description

controlname

The name of the WebBrowser control.

zoomlevel

The ratio to zoom the web page. Valid values are from 25 to 500 (in percentage). Values beyond this range have no zoom effect.


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

CancelDownload

EvaluateJavascriptAsync

EvaluateJavascriptSync

GetSource

GoBack

GoForward

Navigate

PrintAsPDF

PauseDownload

RegisterEvent

ResumeDownload

Refresh

StopNavigation

UnregisterEvent