Style Object

Build 1501 on 14/Nov/2017  This topic last edited on: 10/Oct/2016, at 13:13

The Style object provides control of the typographical styles.

Edit Method Edits the parameters of the style using a dialog.
GetIsParaStyle Method Returns true if the style is a paragraph style.
GetIsTextStyle Method Returns true if the style is a text style.
GetNPars Method Returns the number of parameters of the style.
GetParType Method Returns the type of the nIdx parameter of the style.
GetName Method Returns the tag name of the style.
GetDescription Method Returns the style name of the style.
GetFitName Method Returns the name of the default copy-fit parameters set to strecth/shrink the paragraph.        
GetMaxLines Method Returns maximum allowed number of lines specified in the style.
GetMinLines Method Returns minimum allowed number of lines specified in the style.
GetNextStyleName Method Returns the tag name of the next paragraph style.
GetFill Method Returns the status of the last line fill option.
GetPar Method Returns the value of the nIdx parameter of the style.
GetXMLOutput Method Returns the content of the XML Output.
Select Method Selects a style using a dialog and associates it to the object.
SetName MethodSets the tag name of the style
SetPar MethodSets the value of the nIdx parameter of the style.

To create a Style object:

Dim objStyle = Text.GetTextStyle        ' for text style

Dim objStyle = Text.GetParaStyle        ' for paragraph style

See also

Overview

Format object