Class ExternalLink

Class ExternalLink

Namespace: Aspose.Cells
Assembly: Aspose.Cells.dll (25.2.0)

Represents an external link in a workbook.

public class ExternalLink

Inheritance

objectExternalLink

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Examples

csharp
[C#]

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

//Get External Link 
ExternalLink externalLink = workbook.Worksheets.ExternalLinks[0];

//Change External Link's Data Source
externalLink.DataSource = "d:\\link.xls";

'Open a file with external links
Dim workbook As New Workbook("book1.xls")

'Get External Link 
Dim externalLink As ExternalLink = workbook.Worksheets.ExternalLinks(0)

'Change External Link's Data Source
externalLink.DataSource = "d:\link.xls"

Properties

DataSource

Represents data source of the external link.

public string DataSource { get; set; }

Property Value

string

IsReferred

Indicates whether this external link is referenced by others.

public bool IsReferred { get; }

Property Value

bool

IsVisible

Indicates whether this external link is visible in MS Excel.

public bool IsVisible { get; }

Property Value

bool

OriginalDataSource

Represents stored data source of the external link.

public string OriginalDataSource { get; set; }

Property Value

string

PathType

Get the path type of this external link

public string PathType { get; }

Property Value

string

Type

Gets the type of external link.

public ExternalLinkType Type { get; }

Property Value

ExternalLinkType

Methods

AddExternalName(string, string)

Adds an external name.

public void AddExternalName(string text, string referTo)

Parameters

text string

The text of the external name. If the external name belongs to a worksheet, the text should be as Sheet1!Text.

referTo string

The referTo of the external name. It must be a cell or the range.