ExternalLink

Represents an external link in a workbook.

class ExternalLink;

Example

const { Workbook } = AsposeCells;

//Open a file with external links
var workbook = new Workbook(data);

//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
addExternalName(string, string)Adds an external name.

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;

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.