User Guide
20 Chapter 2: The Fireworks Object Model
Find object
There are several ways to specify a Find object, depending on what you want to find and replace.
Use the
whatToFind property to specify the type of find operation, along with the properties that
are associated with each legal value for
whatToFind. These properties are listed in the following
tables. Read-only properties are marked with a bullet (•).
Finding and replacing text
Finding and replacing fonts and styles
Property Data type Notes
whatToFind
string In the format: "text"
find
string Text to find.
matchCase
Boolean If set to true, the search is case-sensitive.
Defaults to
false.
regExp
Boolean If set to true, the find and replace text is
interpreted as a regular expression. The
default is
false.
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