Skip to main content

ApiRange

Represents the ApiRange class.

Methods

MethodReturnsDescription
AddBookmarkbooleanAdds a bookmark to the specified range.
AddCommentApiCommentAdds a comment to the current range.
AddHyperlinkApiHyperlink | nullAdds a hyperlink to the specified range.
AddTextbooleanAdds a text to the specified position.
DeletebooleanDeletes all the contents from the current range.
ExpandToApiRange | nullReturns a new range that goes beyond the specified range in any direction and spans a different range. The current range has not changed.
GetAllParagraphsApiParagraph[]Returns a collection of paragraphs that represents all the paragraphs in the specified range.
GetClassType"range"Returns a type of the ApiRange class.
GetEndPageNumberReturns the end page number of the current range.
GetEndPosnumberReturns the end position of the current range.
GetParagraphApiParagraph | nullReturns a paragraph from all the paragraphs that are in the range.
GetRangeApiRangeReturns a Range object that represents the document part contained in the specified range.
GetStartPageNumberReturns the start page number of the current range.
GetStartPosnumberReturns the start position of the current range.
GetTextStringReturns a text from the specified range.
GetTextPrApiTextPrReturns the merged text properties of the entire range.
IntersectWithApiRange | nullReturns a new range as the intersection of the current range with another range. The current range has not changed.
SelectNoneSets the selection to the specified range.
SetBoldApiRange | nullSets the bold property to the text character.
SetCapsApiRange | nullSpecifies that any lowercase characters in the current text Range are formatted for display only as their capital letter character equivalents.
SetColorApiRange | nullSets the text color to the current text Range in the RGB format.
SetDoubleStrikeoutApiRange | nullSpecifies that the contents of the current Range are displayed with two horizontal lines through each character displayed on the line.
SetEndPosbooleanSets the end position of the current range object.
SetFontFamilyApiRange | nullSets all 4 font slots with the specified font family.
SetFontSizeApiRange | nullSets the font size to the characters of the current text Range.
SetHighlightApiRange | nullSpecifies a highlighting color which is applied as a background to the contents of the current Range.
SetItalicApiRange | nullSets the italic property to the text character.
SetPositionApiRange | nullSpecifies the amount by which text is raised or lowered for the current Range in relation to the default\ baseline of the surrounding non-positioned text.
SetShdApiRange | nullSpecifies the shading applied to the contents of the current text Range.
SetSmallCapsApiRange | nullSpecifies that all the lowercase letter characters in the current text Range 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.
SetSpacingApiRange | nullSets the text spacing measured in twentieths of a point.
SetStartPosbooleanSets the start position of the current range object.
SetStrikeoutApiRange | nullSpecifies that the contents of the current Range are displayed with a single horizontal line through the range center.
SetStyleApiRange | nullSets the style to the current Range.
SetTextPrApiRange | nullSets the text properties to the current Range.
SetUnderlineApiRange | nullSpecifies that the contents of the current Range are displayed along with a line appearing directly below the character\ (less than all the spacing above and below the characters on the line).
SetVertAlignApiRange | nullSpecifies the alignment which will be applied to the Range contents in relation to the default appearance of the Range text:\ -"baseline" - the characters in the current text Range will be aligned by the default text baseline.\ -"subscript" - the characters in the current text Range will be aligned below the default text baseline.\ -"superscript" - the characters in the current text Range will be aligned above the default text baseline.
ToJSONJSONConverts the ApiRange object into the JSON object.