Class ExcelExternalLinksCollection¶
Namespace: OfficeOpenXml.ExternalReferences
Assembly: EPPlus.dll
A collection of external links referenced by the workbook.
Inheritance¶
object ← ExcelExternalLinksCollection
Implements¶
IEnumerable
IEnumerable<ExcelExternalLink>
Inherited Members¶
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()
Properties¶
Count¶
Gets the number of items in the collection
Property Value¶
Directories¶
A list of directories to look for the external files that cannot be found on the path of the uri.
Property Value¶
this[int]¶
The indexer for the collection
Property Value¶
Methods¶
AddExternalWorkbook(FileInfo)¶
Adds an external reference to another workbook.
Parameters¶
file FileInfo
The location of the external workbook. The external workbook must of type .xlsx, .xlsm or xlst
Returns¶
The ExcelExternalWorkbook object
Clear()¶
Clear all external links and break any formula links.
GetEnumerator()¶
Returns an enumerator that iterates through the collection.
Returns¶
IEnumerator<ExcelExternalLink>
An enumerator that can be used to iterate through the collection.
LoadWorkbooks()¶
Will load all external workbooks that can be accessed via the file system. External workbook referenced via other protocols must be loaded manually.
Returns¶
Returns false if any workbook fails to loaded otherwise true.
Remove(ExcelExternalLink)¶
Removes the external link from the package.If the external reference is an workbook any formula links are broken.
Parameters¶
externalLink ExcelExternalLink
RemoveAt(int)¶
Removes the external link at the zero-based index. If the external reference is an workbook any formula links are broken.
Parameters¶
index int
The zero-based index
UpdateCaches()¶
Updates the value cache for any external workbook in the collection. The link must be an workbook and of type xlsx, xlsm or xlst.
Returns¶
True if all updates succeeded, otherwise false. Any errors can be found on the External links. ErrorLog