ApiTextPr
Represents the ApiTextPr class.
Methods
Method | Returns | Description |
---|---|---|
GetBold | boolean | Gets the bold property from the current text properties. |
GetCaps | boolean | Specifies whether the text with the current text properties are capitalized. |
GetClassType | "textPr" | Returns a type of the ApiTextPr class. |
GetColor | ApiRGBColor | Gets the RGB color from the current text properties. |
GetDoubleStrikeout | boolean | Gets the double strikeout property from the current text properties. |
GetFontFamily | string | Gets the font family from the current text properties. |
GetFontSize | hps | Gets the font size from the current text properties. |
GetHighlight | string | Gets the highlight property from the current text properties. |
GetItalic | boolean | Gets the italic property from the current text properties. |
GetLanguage | string | Gets the language from the current text properties. |
GetOutLine | ApiStroke | Gets the text outline from the current text properties. |
GetPosition | hps | Gets the text position from the current text properties measured in half-points (1/144 of an inch). |
GetShd | ApiRGBColor | Gets the text shading from the current text properties. |
GetSmallCaps | boolean | Specifies whether the text with the current text properties are displayed capitalized two points smaller than the actual font size. |
GetSpacing | twips | Gets the text spacing from the current text properties measured in twentieths of a point. |
GetStrikeout | boolean | Gets the strikeout property from the current text properties. |
GetStyle | ApiStyle | Gets the style of the current text properties. |
GetTextFill | ApiFill | Gets the text fill from the current text properties. |
GetUnderline | boolean | Gets the underline property from the current text properties. |
GetVertAlign | string | Gets the vertical alignment type from the current text properties. |
SetBold | ApiTextPr | Sets the bold property to the text character. |
SetCaps | ApiTextPr | Specifies that any lowercase characters in the text run are formatted for display only as their capital letter character equivalents. |
SetColor | ApiTextPr | Sets the text color to the current text run in the RGB format. |
SetDoubleStrikeout | ApiTextPr | Specifies that the contents of the run are displayed with two horizontal lines through each character displayed on the line. |
SetFontFamily | ApiTextPr | Sets all 4 font slots with the specified font family. |
SetFontSize | ApiTextPr | Sets the font size to the characters of the current text run. |
SetHighlight | ApiTextPr | Specifies a highlighting color which is added to the text properties and applied as a background to the contents of the current run/range/paragraph. |
SetItalic | ApiTextPr | Sets the italic property to the text character. |
SetLanguage | ApiTextPr | Specifies the languages which will be used to check spelling and grammar (if requested) when processing\ the contents of the text run. |
SetOutLine | ApiTextPr | Sets the text outline to the current text run. |
SetPosition | ApiTextPr | Specifies an amount by which text is raised or lowered for this run in relation to the default\ baseline of the surrounding non-positioned text. |
SetShd | ApiTextPr | Specifies the shading applied to the contents of the current text run. |
SetSmallCaps | ApiTextPr | Specifies that all the small letter characters in the text run are formatted for display only as their capital\ letter character equivalents which are two points smaller than the actual font size specified for this text. |
SetSpacing | ApiTextPr | Sets the text spacing measured in twentieths of a point. |
SetStrikeout | ApiTextPr | Specifies that the contents of the run are displayed with a single horizontal line through the center of the line. |
SetStyle | ApiTextPr | The text style base method.\ 💡 This method is not used by itself, as it only forms the basis for the ApiRun#SetStyle method which sets\ the selected or created style to the text. |
SetTextFill | ApiTextPr | Sets the text fill to the current text run. |
SetUnderline | ApiTextPr | 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 | ApiTextPr | Specifies the alignment which will be applied to the contents of the run in relation to the default appearance of the run text:\ -"baseline" - the characters in the current text run will be aligned by the default text baseline.\ -"subscript" - the characters in the current text run will be aligned below the default text baseline.\ -"superscript" - the characters in the current text run will be aligned above the default text baseline. |
ToJSON | JSON | Converts the ApiTextPr object into the JSON object. |