ApiRichTextPr
Class representing the rich text properties.
Methods
The following table lists the available methods.
| Method | Returns | Description |
|---|---|---|
| GetBold | boolean | null | undefined | Gets the bold property from the current text properties. |
| GetClassType | "richTextPr" | Returns a type of the ApiRichTextPr class. |
| GetColor | ApiColor | null | undefined | Gets the RGB color from the current text properties. |
| GetFontFamily | string | null | undefined | Returns the font family from the current text properties. |
| GetFontSize | hps | null | undefined | Gets the font size from the current text properties. |
| GetItalic | boolean | null | undefined | Gets the italic property from the current text properties. |
| GetStrikeout | boolean | null | undefined | Gets the strikeout property from the current text properties. |
| GetUnderline | boolean | null | undefined | Gets the underline property from the current text properties. |
| GetVertAlign | TextVertAlign | Gets the vertical alignment type from the current text properties. |
| SetBold | ApiRichTextPr | Sets the bold property to the text character. |
| SetColor | ApiRichTextPr | Sets the text color to the current text run. |
| SetFontFamily | ApiRichTextPr | Sets all 4 font slots with the specified font family. |
| SetFontSize | ApiRichTextPr | Sets the font size to the characters of the current text run. |
| SetItalic | ApiRichTextPr | Sets the italic property to the text character. |
| SetStrikeout | ApiRichTextPr | Specifies that the contents of the run are displayed with a single horizontal line through the center of the line. |
| SetUnderline | ApiRichTextPr | Specifies that the contents of the run are displayed along with a line appearing directly below the character (less than all the spacing above and below the characters on the line). |
| SetVertAlign | ApiRichTextPr | Specifies the alignment which will be applied to the contents of the run in relation to the default appearance of the run text: |