beautypg.com

Dom.guidesvisible, Dom.hasguides() – Adobe Dreamweaver API Reference CS5 User Manual

Page 433

background image

428

DREAMWEAVER API REFERENCE

Design

Last updated 8/27/2013

Returns
Nothing.

Example
The following example makes guides in the document snap to elements:

var currentDOM = dw.getDocumentDOM();

if (currentDOM.guidesSnapToElements == false) {

currentDOM.guidesSnapToElements = true;
}

dom.guidesVisible

Availability
Dreamweaver 8.

Description
This mutable Boolean property determines whether guides are visible in the document. You can set and get this
property.

Arguments
None.

Returns
Nothing.

Example
The following example turns guides on if they are not visible:

var currentDOM = dw.getDocumentDOM();

if (currentDOM.guidesVisible == false) {

currentDOM.guidesVisible = true;

}

dom.hasGuides()

Availability
Dreamweaver 8.

Description
This function determines whether the document has at least one guide. You can set and get this property.

Arguments
None.

Returns
Nothing.