![MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Manual Download Page 123](http://html1.mh-extra.com/html/macromedia/dreamweaver-mx-2004-extending-dreamweaver/dreamweaver-mx-2004-extending-dreamweaver_manual_3335562123.webp)
Document functions
123
dom.applyStyle()
Availability
Fireworks 3.
Usage
dom.applyStyle(
styleName
,
styleIndex
)
Arguments
styleName
A string that specifies the style name to be applied.
styleIndex
An index to the style to apply. This is usually zero. However, if there are multiple
styles with the same name,
styleIndex
is used to resolve the ambiguity (0 references the first
style with that name, 1 references the second, and so on).
Returns
Nothing.
Description
Applies the specified style to the selection.
Example
The following command applies the first style that Fireworks encounters named “Style 7”, which,
in this case, is a default style.
fw.getDocumentDOM().applyStyle("Style 7", 0);
dom.arrange()
Availability
Fireworks 3.
Usage
dom.arrange(
arrangemode
)
Arguments
arrangemode
Acceptable values for
arrangemode
are
"back"
,
"backward"
,
"forward"
,
and
"front"
.
Returns
Nothing.
Description
Arranges the selection.
Example
The following command brings the selected items to the front.
fw.getDocumentDOM().arrange("front");
Summary of Contents for DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER
Page 1: ...Extending Fireworks...
Page 4: ...4 Contents...
Page 8: ...8 Chapter 1 Extending Fireworks Overview...
Page 102: ...102 Chapter 4 Auto Shapes...