User Guide
300 Fireworks JavaScript API
dom.setTextRectangle()
Availability
Fireworks 3.
Usage
dom.setTextRectangle(boundingRectangle)
Arguments
boundingRectangle A rectangle that specifies the new size within which the text item
should flow (see “Rectangle data type” on page 12).
Returns
Nothing.
Description
Changes the bounding rectangle of the selected text item to the specified size. This function
causes the text to reflow inside the new rectangle; the text item is not scaled or transformed.
Text that does not fit in the new rectangle is not visible.
dom.setTextRectangleAuto()
Availability
Fireworks 3.
Usage
dom.setTextRectangleAuto()
Arguments
None.
Returns
Nothing.
Description
Recalculates the bounding rectangle of the selected text item, setting the rectangle to the
smallest box that encloses the text.
See also
dom.setTextRectangleAutoFromPoint()