dreamweaver.activeViewScale()

Availability

Dreamweaver 8.

Description

This function gets or sets a mutable floating point property. When you get the value, Dreamweaver returns the active view's scale as it appears in the Zoom combo box, divided by 100. For example, 100% is 1.0; 50% is 0.5, and so on. When you set the value, Dreamweaver sets the value in the Zoom combo box. The value can be between 0.06 and 64.00, which correspond to 6% and 6400%.

Example

The following example gets the value of the current view's scale and zooms in if it can and if the scale is less than or equal to 100%:

if (canZoom() && dreamweaver.activeViewScale <= 1.0) {
   zoomIn();   
   } 

The following example sets the value of the current view's scale to 50%:

dreamweaver.activeViewScale = 0.50;

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/dreamweaver/8/apiref/17_des92.htm