ExternalLink

Represents an external link in a workbook.

class ExternalLink;

Methods

MethodDescription
getType()Gets the type of external link.
getPathType()Get the path type of this external link
getOriginalDataSource()Represents stored data source of the external link.
setOriginalDataSource(string)Represents stored data source of the external link.
getDataSource()Represents data source of the external link.
setDataSource(string)Represents data source of the external link.
isReferred()Indicates whether this external link is referenced by others.
isVisible()Indicates whether this external link is visible in MS Excel.
addExternalName(string, string)Adds an external name.

getType()

Gets the type of external link.

getType() : ExternalLinkType;

Returns

ExternalLinkType

getPathType()

Get the path type of this external link

getPathType() : string;

getOriginalDataSource()

Represents stored data source of the external link.

getOriginalDataSource() : string;

setOriginalDataSource(string)

Represents stored data source of the external link.

setOriginalDataSource(value: string) : void;

Parameters:

ParameterTypeDescription
valuestringThe value to set.

getDataSource()

Represents data source of the external link.

getDataSource() : string;

setDataSource(string)

Represents data source of the external link.

setDataSource(value: string) : void;

Parameters:

ParameterTypeDescription
valuestringThe value to set.

isReferred()

Indicates whether this external link is referenced by others.

isReferred() : boolean;

isVisible()

Indicates whether this external link is visible in MS Excel.

isVisible() : boolean;

addExternalName(string, string)

Adds an external name.

addExternalName(text: string, referTo: string) : void;

Parameters:

ParameterTypeDescription
textstringThe text of the external name. /// If the external name belongs to a worksheet, the text should be as Sheet1!Text.
referTostringThe referTo of the external name. It must be a cell or the range.