Aspose::Cells::ExternalLink class
Contents
[
Hide
]ExternalLink class
Represents an external link in a workbook.
class ExternalLink
Methods
Method | Description |
---|---|
AddExternalName(const U16String& text, const U16String& referTo) | Adds an external name. |
AddExternalName(const char16_t* text, const char16_t* referTo) | Adds an external name. |
ExternalLink(ExternalLink_Impl* impl) | Constructs from an implementation object. |
ExternalLink(const ExternalLink& src) | Copy constructor. |
GetDataSource() | Represents data source of the external link. |
GetOriginalDataSource() | Represents stored data source of the external link. |
GetPathType() | Get the path type of this external link. |
GetType() | Gets the type of external link. |
IsNull() const | Checks whether the implementation object is nullptr. |
IsReferred() | Indicates whether this external link is referenced by others. |
IsVisible() | Indicates whether this external link is visible in MS Excel. |
explicit operator bool() const | operator bool() |
operator=(const ExternalLink& src) | operator= |
SetDataSource(const U16String& value) | Represents data source of the external link. |
SetDataSource(const char16_t* value) | Represents data source of the external link. |
SetOriginalDataSource(const U16String& value) | Represents stored data source of the external link. |
SetOriginalDataSource(const char16_t* value) | Represents stored data source of the external link. |
~ExternalLink() | Destructor. |
Fields
Field | Description |
---|---|
_impl | The implementation object. |
Examples
Aspose::Cells::Startup();
//Open a file with external links
Workbook workbook(u"book1.xls");
//Get External Link
ExternalLink externalLink = workbook.GetWorksheets().GetExternalLinks().Get(0);
//Change External Link's Data Source
externalLink.SetDataSource(u"d:\\link.xls");
Aspose::Cells::Cleanup();
See Also
- Namespace Aspose::Cells
- Library Aspose.Cells for C++