SetStyleEx 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 partial or exact tag name.

To set a paragraph style by its style name, use EditParaStyle.

Available in 2.0 or newer.

Syntax

Text.SetStyleEx (boolPara, sName, boolParaChain, boolExact)

boolPara        

True to apply a paragraph style, false to apply a character style

sName

Style tag name

boolParaChain

True to apply chained paragraph styles to all selected paragraphs

boolExact

True to match the exact name of the sName style, otherwise select the first style found with name starting with sName value.

Return value

Error code

Context

Text designer commands

See also

SetStyle

SetTextStyle, SetParaStyle

EditParaStyle, EditParaStyleAll, EditParaStyleChain,

EditParaStyleChainDlg, EditParaStyleDlg