This quick chart lists methods to manage styles by scripting.
EditParaStyleDlg | Displays the dialog with the list of paragraph styles and applies it on all selected paragraphs, or on the current paragraph. |
Text.SetStyle | Applies any style by its tag name, including optional chaining. |
Text.EditParaStyleChain | Applies a linked sequences of paragraph styles on the selected paragraphs (the first style is specified by its style name). |
Text.EditParaStyleChainDlg | Displays the dialog with the list of paragraph styles and applies linked sequences of styles on the selected paragraphs. |
Text.EditParaStyleAll | Sets the style of all the text's paragraphs according to what specified by the schema for the text's type. |
|
Text.TxtStyleDlg | Displays the dialog with the list of characters styles and applies it on the highlighted text. If no text is selected, the style becomes the default for the next inserted characters. |
Text.TxtStyle | Applies a character style on the highlighted text by its style name. |
Text.SetStyle | Applies any style by its tag name, including optional chaining. |
|
SaveTableStyle | Displays a dialog box to save the current table formatting as a table style. |
|
GetParaStyleType | Returns the formatting type of the current paragraph: H=headline format, B=body format, F=other style, 0-no style. |
GetParaStyleName | Returns the tag name of the paragraph style in the paragraph where the I-beam currently is, or an empty string. |
GetTextStyleNamePen | Returns the tag name of the character style on the current position of the I-beam, or an empty string. |
Text.ExpandStyle | Expand the current style into basic tags. Works in pair with CreateStyle method. |
|
See also
Tags and scripting