ExternalLink

Represents an external link in a workbook.

class ExternalLink;

Example

const { Workbook } = require("aspose.cells.node");

//Open a file with external links
var workbook = new Workbook("input/Externlink.xls");

//Get External Link 
var externalLink = workbook.getWorksheets().getExternalLinks().get(0);
//Change External Link's Data Source
externalLink.setDataSource("input/Book1.xls");

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.
isNull()Checks whether the implementation object is null.

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.

isNull()

Checks whether the implementation object is null.

isNull() : boolean;