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.worksheets.externalLinks.get(0);
//Change External Link's Data Source
externalLink.dataSource = "input/Book1.xls";

Properties

PropertyTypeDescription
typeExternalLinkTypeReadonly. Gets the type of external link.
pathTypestringReadonly. Get the path type of this external link
originalDataSourcestringRepresents stored data source of the external link.
dataSourcestringRepresents data source of the external link.
isReferredbooleanReadonly. Indicates whether this external link is referenced by others.
isVisiblebooleanReadonly. Indicates whether this external link is visible in MS Excel.

Methods

MethodDescription
getType()@deprecated. Please use the ’type’ property instead. Gets the type of external link.
getPathType()@deprecated. Please use the ‘pathType’ property instead. Get the path type of this external link
getOriginalDataSource()@deprecated. Please use the ‘originalDataSource’ property instead. Represents stored data source of the external link.
setOriginalDataSource(string)@deprecated. Please use the ‘originalDataSource’ property instead. Represents stored data source of the external link.
getDataSource()@deprecated. Please use the ‘dataSource’ property instead. Represents data source of the external link.
setDataSource(string)@deprecated. Please use the ‘dataSource’ property instead. Represents data source of the external link.
isReferred()@deprecated. Please use the ‘isReferred’ property instead. Indicates whether this external link is referenced by others.
isVisible()@deprecated. Please use the ‘isVisible’ property instead. 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.

type

Readonly. Gets the type of external link.

type : ExternalLinkType;

pathType

Readonly. Get the path type of this external link

pathType : string;

originalDataSource

Represents stored data source of the external link.

originalDataSource : string;

dataSource

Represents data source of the external link.

dataSource : string;

isReferred

Readonly. Indicates whether this external link is referenced by others.

isReferred : boolean;

isVisible

Readonly. Indicates whether this external link is visible in MS Excel.

isVisible : boolean;

getType()

@deprecated. Please use the ’type’ property instead. Gets the type of external link.

getType() : ExternalLinkType;

Returns

ExternalLinkType

getPathType()

@deprecated. Please use the ‘pathType’ property instead. Get the path type of this external link

getPathType() : string;

getOriginalDataSource()

@deprecated. Please use the ‘originalDataSource’ property instead. Represents stored data source of the external link.

getOriginalDataSource() : string;

setOriginalDataSource(string)

@deprecated. Please use the ‘originalDataSource’ property instead. Represents stored data source of the external link.

setOriginalDataSource(value: string) : void;

Parameters:

ParameterTypeDescription
valuestringThe value to set.

getDataSource()

@deprecated. Please use the ‘dataSource’ property instead. Represents data source of the external link.

getDataSource() : string;

setDataSource(string)

@deprecated. Please use the ‘dataSource’ property instead. Represents data source of the external link.

setDataSource(value: string) : void;

Parameters:

ParameterTypeDescription
valuestringThe value to set.

isReferred()

@deprecated. Please use the ‘isReferred’ property instead. Indicates whether this external link is referenced by others.

isReferred() : boolean;

isVisible()

@deprecated. Please use the ‘isVisible’ property instead. 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;