public class ExternalLink
extends java.lang.Object
Example
//Open a file with external links
Workbook workbook = new Workbook("book1.xls");
//Get External Link
ExternalLink externalLink = workbook.getWorksheets().getExternalLinks().get(0);
//Change External Link's Data Source
externalLink.setDataSource("d:\\link.xls");
| Modifier and Type | Method and Description |
|---|---|
void |
addExternalName(java.lang.String text,
java.lang.String referTo)
Adds an external name.
|
java.lang.String |
getDataSource()
Represents data source of the external link.
|
java.lang.String |
getOriginalDataSource()
Represents stored data source of the external link.
|
java.lang.String |
getPathType()
Get the path type of this external link
|
int |
getType()
Gets the type of external link.
|
boolean |
isReferred()
Indicates whether this external link is referenced by others.
|
boolean |
isVisible()
Indicates whether this external link is visible in MS Excel.
|
void |
setDataSource(java.lang.String value)
Represents data source of the external link.
|
void |
setOriginalDataSource(java.lang.String value)
Represents stored data source of the external link.
|
public int getType()
See ExternalLinkType.
public java.lang.String getPathType()
public java.lang.String getOriginalDataSource()
public void setOriginalDataSource(java.lang.String value)
public java.lang.String getDataSource()
public void setDataSource(java.lang.String value)
public void addExternalName(java.lang.String text,
java.lang.String referTo)
text - The text of the external name.
If the external name belongs to a worksheet, the text should be as Sheet1!Text.referTo - The referTo of the external name. It must be a cell or the range.public boolean isReferred()
public boolean isVisible()
See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.