Aspose::Cells::ExternalLinkCollection class

ExternalLinkCollection class

Represents external links collection in a workbook.

class ExternalLinkCollection

Methods

MethodDescription
Add(const U16String& fileName, const Vector <U16String>& sheetNames)Adds an external link.
Add(const char16_t* fileName, const Vector <U16String>& sheetNames)Adds an external link.
Add(DirectoryType directoryType, const U16String& fileName, const Vector <U16String>& sheetNames)Add an external link .
Add(DirectoryType directoryType, const char16_t* fileName, const Vector <U16String>& sheetNames)Add an external link .
Clear()Removes all external links.
Clear(bool updateReferencesAsLocal)Removes all external links.
ExternalLinkCollection(ExternalLinkCollection_Impl* impl)Constructs from an implementation object.
ExternalLinkCollection(const ExternalLinkCollection& src)Copy constructor.
Get(int32_t index)Gets the ExternalLink element at the specified index.
GetCount()Gets the number of elements actually contained in the collection.
GetEnumerator()Get an enumerator that iterates through this collection.
IsNull() constChecks whether the implementation object is nullptr.
explicit operator bool() constoperator bool()
operator=(const ExternalLinkCollection& src)operator=
RemoveAt(int32_t index)Removes the specified external link from the workbook.
RemoveAt(int32_t index, bool updateReferencesAsLocal)Removes the specified external link from the workbook.
~ExternalLinkCollection()Destructor.

Fields

FieldDescription
_implThe implementation object.

Examples

Aspose::Cells::Startup();
//Open a file with external links
Workbook workbook(u"book1.xls");

//Change external link data source
workbook.GetWorksheets().GetExternalLinks().Get(0).SetDataSource(u"d:\\link.xls");


Aspose::Cells::Cleanup();

See Also