Description
Sets the paragraph style of the selected paragraphs, passing a Style object as a parameter.
Syntax
Text.SetParaStyle (obj1) |
obj1
Style object describing the style to set.
Return value
Error code
Example
This example applies the paragraph style with the tag name "headline" to the selected paragraphs.
dim objStyle = Text.GetParaStyle
Objstyle.name = "headline"
Text.SetParaStyle(objstyle)
Note: it is not possible to apply style by its (descriptive) name, but only by its tag name.
Context
Text designer commands
See also