User Guide

Layout view functions 453
Layout view functions
Layout view functions handle operations that change the layout elements within a document.
They affect table, column, and cell settings, including position, properties, and appearance.
dom.addSpacerToColumn()
Availability
Dreamweaver 4.
Description
Creates a 1-pixel-high transparent spacer image at the bottom of a specified column in the
currently selected table. This function fails if the current selection is not a table or if the
operation is not successful.
Arguments
colNum
The colNum argument is the column at the bottom of which the spacer image is created.
Returns
Nothing.
dom.createLayoutCell()
Availability
Dreamweaver 4.
Description
Creates a layout cell in the current document at the specified position and dimensions, either
within an existing layout table or in the area below the existing content on the page. If the cell
is created in an existing layout table, it must not overlap or contain any other layout cells or
nested layout tables. If the rectangle is not inside an existing layout table, Dreamweaver tries
to create a layout table to house the new cell. This function does not force the document into
Layout view. This function fails if the cell cannot be created.
Arguments
left, top, width, height
The left argument is the x position of the left border of the cell.
The top argument is the y position of the top border of the cell.
000_DW_API_Print.book Page 453 Wednesday, July 20, 2005 11:58 AM