Skip to main content

ApiRangeTextPr

ApiRangeTextPr is a subclass of ApiTextPr.

Methods

MethodReturnsDescription
GetBoldbooleanGets the bold property from the current text properties.
GetCapsbooleanReturns whether the text with the current text properties are capitalized.
GetClassType"textPr"Returns a type of the ApiTextPr class.
GetColorApiColorGets the RGB color from the current text properties.
GetDoubleStrikeoutbooleanGets the double strikeout property from the current text properties.
GetFontFamilystringReturns the font family from the current text properties.
GetFontSizehpsGets the font size from the current text properties.
GetHighlightstringGets the highlight property from the current text properties.
GetItalicbooleanGets the italic property from the current text properties.
GetLanguagestringGets the language from the current text properties.
GetOutLineApiStrokeGets the text outline from the current text properties.
GetPositionhpsGets the text position from the current text properties measured in half-points (1/144 of an inch).
GetShdShd | undefinedGets the text shading from the current text properties.
GetSmallCapsbooleanReturns whether the text with the current text properties are displayed capitalized two points smaller than the actual font size.
GetSpacingtwipsGets the text spacing from the current text properties measured in twentieths of a point.
GetStrikeoutbooleanGets the strikeout property from the current text properties.
GetStyleApiStyleGets the style of the current text properties.
GetTextFillApiFillGets the text fill from the current text properties.
GetUnderlinebooleanGets the underline property from the current text properties.
GetVertAlignstringGets the vertical alignment type from the current text properties.
SetBoldApiTextPrSets the bold property to the text character.
SetCapsApiTextPrSpecifies that any lowercase characters in the text run are formatted for display only as their capital letter character equivalents.
SetColorApiTextPrSets the text color to the current text run.
SetDoubleStrikeoutApiTextPrSpecifies that the contents of the run are displayed with two horizontal lines through each character displayed on the line.
SetFontFamilyApiTextPrSets all 4 font slots with the specified font family.
SetFontSizeApiTextPrSets the font size to the characters of the current text run.
SetHighlightApiTextPrSpecifies a highlighting color which is added to the text properties and applied as a background to the contents of the current run/range/paragraph.
SetItalicApiTextPrSets the italic property to the text character.
SetLanguageApiTextPrSpecifies the languages which will be used to check spelling and grammar (if requested) when processing
SetOutLineApiTextPrSets the text outline to the current text run.
SetPositionApiTextPrSpecifies an amount by which text is raised or lowered for this run in relation to the default
SetShdApiTextPrSpecifies the shading applied to the contents of the current text run.
SetSmallCapsApiTextPrSpecifies that all the small letter characters in the text run are formatted for display only as their capital
SetSpacingApiTextPrSets the text spacing measured in twentieths of a point.
SetStrikeoutApiTextPrSpecifies that the contents of the run are displayed with a single horizontal line through the center of the line.
SetStyleApiTextPrThe text style base method.
SetTextFillApiTextPrSets the text fill to the current text run.
SetUnderlineApiTextPrSpecifies that the contents of the run are displayed along with a line appearing directly below the character
SetVertAlignApiTextPrSpecifies the alignment which will be applied to the contents of the run in relation to the default appearance of the run text:
ToJSONJSONConverts the ApiTextPr object into the JSON object.