Skip to main content

ApiHyperlink

Class representing a Paragraph hyperlink.

Methods​

The following table lists the available methods.

MethodReturnsDescription
GetClassType"hyperlink"Returns a type of the ApiHyperlink class.
GetDisplayedTextstringReturns the hyperlink display text.
GetElementParagraphContent | null | undefinedReturns the hyperlink element using the position specified.
GetElementsCountnumberReturns a number of elements in the current hyperlink.
GetLinkedTextstringReturns the hyperlink address.
GetParentParagraphLikeContainer | null | undefinedReturns the parent element (a paragraph or an inline content control) that directly contains the current hyperlink.
GetPosInParentNumberReturns the position (index) of the current hyperlink within its parent element.
GetRangeApiRangeReturns a Range object that represents the document part contained in the specified hyperlink.
GetScreenTipTextstringReturns the screen tip text of the hyperlink.
SetDefaultStylebooleanSets the default hyperlink style.
SetDisplayedTextbooleanSets the hyperlink display text.
SetLinkbooleanSets the hyperlink address.
SetScreenTipTextbooleanSets the screen tip text of the hyperlink.
ToJSONJSONConverts the ApiHyperlink object into the JSON object.