Word.Interfaces.HyperlinkData interface
An interface describing the data returned by calling hyperlink.toJSON()
.
Properties
address | Specifies the address (for example, a file name or URL) of the hyperlink. |
email |
Specifies the text string for the hyperlink's subject line. |
is |
Returns |
name | Returns the name of the |
range | Returns a |
screen |
Specifies the text that appears as a ScreenTip when the mouse pointer is positioned over the hyperlink. |
sub |
Specifies a named location in the destination of the hyperlink. |
target | Specifies the name of the frame or window in which to load the hyperlink. |
text |
Specifies the hyperlink's visible text in the document. |
type | Returns the hyperlink type. |
Property Details
address
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Specifies the address (for example, a file name or URL) of the hyperlink.
address?: string;
Property Value
string
Remarks
emailSubject
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Specifies the text string for the hyperlink's subject line.
emailSubject?: string;
Property Value
string
Remarks
isExtraInfoRequired
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Returns true
if extra information is required to resolve the hyperlink.
isExtraInfoRequired?: boolean;
Property Value
boolean
Remarks
name
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Returns the name of the Hyperlink
object.
name?: string;
Property Value
string
Remarks
range
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Returns a Range
object that represents the portion of the document that's contained within the hyperlink.
range?: Word.Interfaces.RangeData;
Property Value
Remarks
screenTip
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Specifies the text that appears as a ScreenTip when the mouse pointer is positioned over the hyperlink.
screenTip?: string;
Property Value
string
Remarks
subAddress
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Specifies a named location in the destination of the hyperlink.
subAddress?: string;
Property Value
string
Remarks
target
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Specifies the name of the frame or window in which to load the hyperlink.
target?: string;
Property Value
string
Remarks
textToDisplay
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Specifies the hyperlink's visible text in the document.
textToDisplay?: string;
Property Value
string
Remarks
type
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Returns the hyperlink type.
type?: Word.HyperlinkType | "Range" | "Shape" | "InlineShape";
Property Value
Word.HyperlinkType | "Range" | "Shape" | "InlineShape"