User Guide
24 The Fireworks Object Model
Finding and replacing fonts and styles
Finding and replacing colors, fills, strokes, and effects
replace
string Text to use as replacement text.
wholeWord
Boolean If set to true, only whole words matching
the search text are found. The default is
false.
Property Data type Notes
whatToFind
string In the format: "font"
find
string Name of font to find.
replace
string Name of font to use as replacement.
findStyle
integer Number that represents the style to find:
AnyStyle = -1
Plain = 0
Bold = 1
Italic = 2
BoldItalic = 3
Underline = 4
BoldUnderline = 5
ItalicUnderline = 6
BoldItalicUnderline = 7
replaceStyle
integer Number that represents the style to be used
as replacement.
findMinSize
integer 0 to 9999
findMaxSize
integer 0 to 9999
replaceSize
integer 0 to 9999, or pass -1 to leave size as is
Property Data type Notes
whatToFind
string In the format: "color"
find
string A color string that specifies the color to find
(for more information, see “Color string
data type” on page 11).
replace
string A color string that specifies the color to use
as a replacement (for more information, see
“Color string data type” on page 11).
Property Data type Notes