Example:
# Open a file with external links workbook = Workbook("ExternalFormula.xlsx") # Change external link data source workbook.getWorksheets().getExternalLinks().get(0).setDataSource("Book2.xlsx")
Property Getters/Setters Summary | ||
---|---|---|
method | getCount() | |
Gets the number of elements actually contained in the collection.
|
||
method | get(index) | |
Gets the |
Method Summary | ||
---|---|---|
method | add(directoryType, fileName, sheetNames) | |
Add an external link .
|
||
method | add(fileName, sheetNames) | |
Adds an external link.
|
||
method | clear() | |
Removes all external links.
|
||
method | clear(updateReferencesAsLocal) | |
Removes all external links.
|
||
method | iterator() | |
Get an enumerator that iterates through this collection.
|
||
method | removeAt(index) | |
Removes the specified external link from the workbook.
|
||
method | removeAt(index, updateReferencesAsLocal) | |
Removes the specified external link from the workbook.
|
int getCount()
ExternalLink get(index)
index
- The zero based index of the element.int add(fileName, sheetNames)
fileName: String
- The external file name.sheetNames: String[]
- All sheet names of the external file.int add(directoryType, fileName, sheetNames)
directoryType: int
- A fileName: String
- the file name.sheetNames: String[]
- All sheet names of the external file.clear()
clear(updateReferencesAsLocal)
updateReferencesAsLocal: boolean
-
Whether update all references of external links in formulas to references of current workbook itself.
removeAt(index)
index: int
- the index of the external link to be removed.removeAt(index, updateReferencesAsLocal)
index: int
- the index of the external link to be removed.updateReferencesAsLocal: boolean
-
Whether update all references of given external link to reference of current workbook itself.
Check Iterator iterator()