Style

Syntax

Style StyleName$

Remarks

Applies a style to the selected paragraphs. If StyleName$ does not exist, an error occurs. To create a style, use FormatStyle.

Example

This example finds the first instance of the word "Overview" followed by a paragraph mark and applies the Heading 1 style:


StartOfDocument
EditFind .Find = "Overview^p", .Direction = 0, .MatchCase = 1, \
    .Format = 0
If EditFindFound() Then Style "Heading 1"

See Also

FormatStyle, NormalStyle, StyleName$()