Example
The following example deletes all guides in the document if the document has a vertical guide
at the specified location:
var currentDOM = dw.getDocumentDOM();
if (currentDOM.hasVerticalGuide("10px") == true) {
currentDOM.clearGuides();
}
dom.snapToGuides
Availability
Dreamweaver 8.
Description
This mutable Boolean property determines whether elements snap to guides in the document.
You can set and get this property.
Arguments
None.
Returns
Nothing.
Example
The following example makes elements in the document snap to guides:
var currentDOM = dw.getDocumentDOM();
if (currentDOM.snapToGuides == false) {
currentDOM.snapToGuides = true;
}
476
Design
Need help?
Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?