java.lang.Object
com.aspose.cells.ExternalLinkCollection
public class ExternalLinkCollection
Example:
//Open a file with external links
Workbook workbook = new Workbook("d:\\book1.xls");
//Change external link data source
workbook.getWorksheets().getExternalLinks().get(0).setDataSource("d:\\link.xls");
| Property Getters/Setters Summary | ||
|---|---|---|
int | getCount() | |
| Gets the number of elements actually contained in the collection. | ||
ExternalLink | get(int) | |
|
Gets the |
||
| Method Summary | ||
|---|---|---|
int | add(int directoryType, java.lang.String fileName, java.lang.String[] sheetNames) | |
| Add an external link . | ||
int | add(java.lang.String fileName, java.lang.String[] sheetNames) | |
| Adds an external link. | ||
void | clear() | |
| Removes all external links. | ||
void | clear(boolean updateReferencesAsLocal) | |
| Removes all external links. | ||
java.util.Iterator | iterator() | |
| Get an enumerator that iterates through this collection. | ||
void | removeAt(int index) | |
| Removes the specified external link from the workbook. | ||
void | removeAt(int index, boolean updateReferencesAsLocal) | |
| Removes the specified external link from the workbook. | ||
| Property Getters/Setters Detail |
|---|
getCount | |
public int getCount() | |
get | |
public ExternalLink get(int index) | |
index - The zero based index of the element.| Method Detail |
|---|
add | |
public int add(java.lang.String fileName, java.lang.String[] sheetNames) | |
fileName - The external file name.sheetNames - All sheet names of the external file.add | |
public int add(int directoryType, java.lang.String fileName, java.lang.String[] sheetNames) | |
directoryType - A fileName - the file name.sheetNames - All sheet names of the external file.clear | |
public void clear() | |
clear | |
public void clear(boolean updateReferencesAsLocal) | |
updateReferencesAsLocal -
Whether update all references of external links as references of current workbook itself.
removeAt | |
public void removeAt(int index) | |
index - the index of the external link to be removed.removeAt | |
public void removeAt(int index, boolean updateReferencesAsLocal) | |
index - the index of the external link to be removed.updateReferencesAsLocal -
Whether update all references of given external link to reference of current workbook itself.
iterator | |
public java.util.Iterator iterator() | |