SetParaStyle Method

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

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

SetStyle, SetStyleEx

TestTextParaStyle