User Guide

298 Fireworks JavaScript API
dom.setTextParaSpacingAfter()
Availability
Fireworks MX.
Usage
dom.setTextParaSpacingAfter(paraSpaceAfter)
Arguments
paraSpaceAfter The number of pixels to place after a paragraph before starting the
next paragraph.
Returns
Nothing.
Description
Sets the after-paragraph spacing for text; that is, the number of pixels to move down before
starting the next paragraph. For vertical text mode, this function defines the vertical distance
between paragraphs.
dom.setTextParaSpacingBefore()
Availability
Fireworks MX.
Usage
dom.setTextParaSpacingBefore(paraSpaceBefore)
Arguments
paraSpaceBefore The number of pixels to move down before starting a new paragraph.
Returns
Nothing.
Description
Sets the before-paragraph spacing for text; that is, the number of pixels to move down from
the previous paragraph before starting the new paragraph. For vertical text mode, this
function defines the vertical distance between paragraphs. If you apply
dom.setTextParaSpacingAfter() in one paragraph, and
dom.setTextParaSpacingBefore() in the second paragraph, the space between the two
paragraphs would be the sum of both spacing arguments.