Dom.snaptoguides, Table editing functions, Dom.convertwidthstopercent() – Adobe Dreamweaver API Reference CS5 User Manual
Page 435
430
DREAMWEAVER API REFERENCE
Design
Last updated 8/27/2013
Returns
A Boolean value:
true
if there is a vertical guide at the location;
false
otherwise.
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;
}
Table editing functions
Table functions add and remove table rows and columns, change column widths and row heights, convert
measurements from pixels to percents and back, and perform other standard table-editing tasks.
dom.convertWidthsToPercent()
Availability
Dreamweaver 3.
Description
This function converts all
WIDTH
attributes in the current table from pixels to percentages.