beautypg.com

Dom.setshowlayoutview(), Resolution management functions, Dreamweaver.canfitsize() – Adobe Dreamweaver API Reference CS5 User Manual

Page 422: Dom.getviewsizemenuitems()

background image

417

DREAMWEAVER API REFERENCE

Design

Last updated 8/27/2013

dom.setShowLayoutView()

Availability
Dreamweaver 4.

Description
Places the current document in Layout view if bShow is

true

.

Arguments
bShow

The bShow argument is a Boolean value that toggles the current document between Layout view and Standard view.
If bShow is

true

, the current document is in Layout view; if bShow is

false

, the current document is in Standard view.

Returns
Nothing.

Resolution management functions

dreamweaver.canFitSize()

Availability
Dreamweaver CS5.5.

Description
Checks whether there is a selection in an active Design view. If there is a selection,

fitAll()

and

fitWidth()

can be

called.

Arguments
None

Returns
A boolean value:

true

if there is an active Design view;

false

if otherwise.

dom.getViewSizeMenuItems()

Availability
Dreamweaver CS5.5.

Description
Returns a string array for the Design view or Live view size menu, which include preset user-defined sizes and Media
Queries with sizing info.

Arguments
None.