Skip to main content

ApiHyperlink

Class representing a hyperlink.

Properties​

NameTypeDescription
AddressstringReturns or sets the address of the target document.
NamestringReturns the name of the hyperlink.
RangeApiRangeReturns the range the hyperlink is attached to.
ScreenTipstringReturns or sets the screen tip text for the hyperlink.
SubAddressstringReturns or sets the subaddress of the target document.
TextToDisplaystringReturns or sets the text to be displayed for the hyperlink.
TypenumberReturns the type of the hyperlink.

Methods​

The following table lists the available methods.

MethodReturnsDescription
DeleteNoneDeletes the hyperlink.
GetAddressstringReturns the address of the target document.
GetClassType"hyperlink"Returns a type of the ApiHyperlink class.
GetElementParagraphContent | null | undefinedReturns the hyperlink element using the position specified.
GetElementsCountnumberReturns a number of elements in the current hyperlink.
GetLinkedTextstringReturns the hyperlink address.
GetNamestringReturns the name of the hyperlink.
GetRangeApiRangeReturns the range the hyperlink is attached to.
GetScreenTipstringReturns the screen tip text for the hyperlink.
GetScreenTipTextstringReturns the screen tip text of the hyperlink.
GetSubAddressstringReturns the subaddress of the target document.
GetTextRangeApiTextRange | nullReturns an ApiTextRange object that represents the part of the text contained in the current hyperlink.
GetTextToDisplaystringReturns the text displayed for the hyperlink.
GetTypenumberReturns the type of the hyperlink.
SetAddressNoneSets the address of the target document.
SetLinkbooleanSets the hyperlink address.
SetScreenTipNoneSets the screen tip text for the hyperlink.
SetScreenTipTextbooleanSets the screen tip text of the hyperlink.
SetSubAddressNoneSets the subaddress of the target document.
SetTextToDisplayNoneSets the text to be displayed for the hyperlink.