beautypg.com

Dom.guideslocked, Dom.guidessnaptoelements – Adobe Dreamweaver API Reference CS5 User Manual

Page 432

background image

427

DREAMWEAVER API REFERENCE

Design

Last updated 8/27/2013

Arguments
None.

Returns
Nothing.

Example
The following example makes the distance feedback color of guides gray:

var currentDOM = dw.getDocumentDOM();

if (currentDOM.guidesDistanceColor != "#CCCCCC"){

currentDOM.guidesDistanceColor = "#CCCCCC";
}

dom.guidesLocked

Availability
Dreamweaver 8.

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

Arguments
None.

Returns
Nothing.

Example
The following example locks guides if they are not locked:

var currentDOM = dw.getDocumentDOM();

if (currentDOM.guidesLocked == false) {

currentDOM.guidesLocked = true;

}

dom.guidesSnapToElements

Availability
Dreamweaver 8.

Description
This mutable Boolean property determines whether guides snap to elements in the document. You can set and get this
property.

Arguments
None.