Description
Sets a paragraph or a character style, or a chained paragraph style, by its tag name.
Syntax
Text.SetStyle (boolPara, sName, boolParaChain) |
boolPara
True to apply a paragraph style, false to apply a character style
sName
Style tag name; matches the exact name of the sName style
boolParaChain
True to apply chained paragraph styles to all selected paragraphs
Return value
Error code
Remarks
To apply a paragraph style by its style name, see EditParaStyle.
To apply a character style by its style name, see TxtStyle. To apply it by its object, see SetTextStyle. To apply it by a dialog box, see TxtStyleDlg.
Context
Text designer commands
See also