The FormattingStyle object represents a styling for a text range.

Syntax

FormattingStyle

Introduced: X18.

Methods

Method Description
apply Applies all set attributes of the style to the current document.
getAutoBaseline Gets values specifying automatic sub- or superscripted text.
getBaseStyle Gets the FormattingStyle which is the base style of this style.
getBaseline Gets the baseline alignment, in twips, of the style.
getBold Gets the bold attribute of the style.
getCapitals Gets values specifying wheather lowercase letters are displayed with capital letters.
getCharacterScaling Gets or sets the style's character scaling, in percent of the average character width.
getCharacterSpacing Gets the style's character spacing value, in twips.
getCulture Gets the culture as a languagecode2-country / regioncode2 string value.
getFontName Gets the font of the style.
getFontSize Gets the font's size of the style.
getForeColor Gets the style's color used to display the text.
getItalic Gets the italic attribute of the style.
getName Gets the name of the style.
getStrikeout Gets the strikeout attribute of the style.
getTextBackColor Gets the style's text background color.
getUnderline Gets the underlining styles for the style.
setAutoBaseline Sets values specifying automatic sub- or superscripted text.
setBaseline Sets the baseline alignment, in twips, of the style.
setBold Sets the bold attribute of the style.
setCapitals Sets values specifying wheather lowercase letters are displayed with capital letters.
setCharacterScaling Sets or sets the style's character scaling, in percent of the average character width.
setCharacterSpacing Sets the style's character spacing value, in twips.
setCulture Sets the culture as a languagecode2-country / regioncode2 string value.
setFontName Sets the font of the style.
setFontSize Sets the font's size of the style.
setForeColor Sets the style's color used to display the text.
setItalic Sets the italic attribute of the style.
setName Sets the name of the style.
setStrikeout Sets the strikeout attribute of the style.
setTextBackColor Sets the style's text background color.
setUnderline Sets the underlining styles for the style.