Example:
//Open a file with external links
$workbook = new cells\Workbook("Book1.xls");
//Change external link data source
$workbook->getWorksheets()->getExternalLinks()->get(0)->setDataSource("Book2.xls");
| Property Getters/Setters Summary | ||
|---|---|---|
function | getCount() | |
Gets the number of elements actually contained in the collection.
|
||
function | get(index) | |
Gets the |
||
| Method Summary | ||
|---|---|---|
function | add(directoryType, fileName, sheetNames) | |
Add an external link .
|
||
function | add(fileName, sheetNames) | |
Adds an external link.
|
||
function | clear() | |
Removes all external links.
|
||
function | clear(updateReferencesAsLocal) | |
Removes all external links.
|
||
function | iterator() | |
Get an enumerator that iterates through this collection.
|
||
function | removeAt(index) | |
Removes the specified external link from the workbook.
|
||
function | removeAt(index, updateReferencesAsLocal) | |
Removes the specified external link from the workbook.
|
||
function getCount()
function get(index)
index - The zero based index of the element.function add(fileName, sheetNames)
fileName: String - The external file name.sheetNames: String[] - All sheet names of the external file.function add(directoryType, fileName, sheetNames)
directoryType: Number - A fileName: String - the file name.sheetNames: String[] - All sheet names of the external file.function clear()
function clear(updateReferencesAsLocal)
updateReferencesAsLocal: boolean -
Whether update all references of external links in formulas to references of current workbook itself.
function removeAt(index)
index: Number - the index of the external link to be removed.function removeAt(index, updateReferencesAsLocal)
index: Number - 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 function iterator()