SetStyle Method

Build 1501 on 14/Nov/2017  This topic last edited on: 23/Mar/2016, at 12:19

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

SetStyleEx

SetTextStyle, SetParaStyle

EditParaStyle, EditParaStyleAll, EditParaStyleChain,

EditParaStyleChainDlg, EditParaStyleDlg