EditFindFont

Syntax

EditFindFont [.Points = number] [, .Underline = number] [, .Color = number] [, .Strikethrough = number] [, .Superscript = number] [, .Subscript = number] [, .Shadow = number] [, .Hidden = number] [, .SmallCaps = number] [, .AllCaps = number] [, .Outline = number] [, .Spacing = number] [, .Position = number or text] [, .Kerning = number] [, .KerningMin = number or text] [, .Default] [, .Tab = number] [, .Font = text] [, .Bold = number] [, .Italic = number]

Remarks

When followed by an EditFind or EditReplace instruction in which .Format is set to 1, specifies the character formatting of the text you want to find. You can set .Strikethrough, .Superscript, .Subscript, .Shadow, .Hidden, .SmallCaps, .AllCaps, .Outline, .Kerning, .Bold, and .Italic to one of the three following values.

Use this value

To do this

–1

Find text regardless of whether it has the format

0 (zero)

Find text that does not have the format

1

Find text that has the format


Note that .Shadow and .Outline are available only on the Macintosh. For more information on the arguments, see FormatFont.

Examples

This example finds the next instance of any text that is bold:


EditFindClearFormatting 
EditFindFont .Bold = 1
EditFind .Find = "", .Format = 1

The following example finds the next instance of the word "Note" that is not bold:


EditFindClearFormatting 
EditFindFont .Bold = 0
EditFind .Find = "Note", .Format = 1

The following example finds the next instance of "Note" whether or not it is bold. Normally, you use EditFindClearFormatting to remove formatting specifications from a search operation. With the instruction EditFindFont .Bold = –1, you can remove the specification for bold without affecting other search formats set previously.


EditFindFont .Bold = –1
EditFind .Find = "Note", .Format = 1

See Also

EditFind, EditFindBorder, EditFindClearFormatting, EditFindFrame, EditFindLang, EditFindPara, EditFindStyle, EditFindTabs, EditReplace, EditReplaceFont, FormatFont