Edit

Share via


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.

emailSubject

Specifies the text string for the hyperlink's subject line.

isExtraInfoRequired

Returns true if extra information is required to resolve the hyperlink.

name

Returns the name of the Hyperlink object.

range

Returns a Range object that represents the portion of the document that's contained within the hyperlink.

screenTip

Specifies the text that appears as a ScreenTip when the mouse pointer is positioned over the hyperlink.

subAddress

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.

textToDisplay

Specifies the hyperlink's visible text in the document.

type

Returns the hyperlink type.

Property Details

address

Specifies the address (for example, a file name or URL) of the hyperlink.

address?: string;

Property Value

string

Remarks

[ API set: WordApiDesktop 1.3 ]

emailSubject

Specifies the text string for the hyperlink's subject line.

emailSubject?: string;

Property Value

string

Remarks

[ API set: WordApiDesktop 1.3 ]

isExtraInfoRequired

Returns true if extra information is required to resolve the hyperlink.

isExtraInfoRequired?: boolean;

Property Value

boolean

Remarks

[ API set: WordApiDesktop 1.3 ]

name

Returns the name of the Hyperlink object.

name?: string;

Property Value

string

Remarks

[ API set: WordApiDesktop 1.3 ]

range

Returns a Range object that represents the portion of the document that's contained within the hyperlink.

range?: Word.Interfaces.RangeData;

Property Value

Remarks

[ API set: WordApiDesktop 1.3 ]

screenTip

Specifies the text that appears as a ScreenTip when the mouse pointer is positioned over the hyperlink.

screenTip?: string;

Property Value

string

Remarks

[ API set: WordApiDesktop 1.3 ]

subAddress

Specifies a named ___location in the destination of the hyperlink.

subAddress?: string;

Property Value

string

Remarks

[ API set: WordApiDesktop 1.3 ]

target

Specifies the name of the frame or window in which to load the hyperlink.

target?: string;

Property Value

string

Remarks

[ API set: WordApiDesktop 1.3 ]

textToDisplay

Specifies the hyperlink's visible text in the document.

textToDisplay?: string;

Property Value

string

Remarks

[ API set: WordApiDesktop 1.3 ]

type

Returns the hyperlink type.

type?: Word.HyperlinkType | "Range" | "Shape" | "InlineShape";

Property Value

Word.HyperlinkType | "Range" | "Shape" | "InlineShape"

Remarks

[ API set: WordApiDesktop 1.3 ]