Aspose::Cells::HyperlinkCollection class
Contents
[
Hide
]HyperlinkCollection class
Encapsulates a collection of Hyperlink objects.
class HyperlinkCollection
Methods
Fields
Field | Description |
---|---|
_impl | The implementation object. |
Examples
Aspose::Cells::Startup();
//Instantiating a Workbook object
Workbook workbook;
//Obtaining the reference of the newly added worksheet by passing its sheet index
Worksheet worksheet = workbook.GetWorksheets().Get(0);
//Get Hyperlinks Collection
HyperlinkCollection hyperlinks = worksheet.GetHyperlinks();
//Adding a hyperlink to a URL at "A1" cell
hyperlinks.Add(u"A1", 1, 1, u"http://www.aspose.com");
//Saving the Excel file
workbook.Save(u"book1.xls");
Aspose::Cells::Cleanup();
See Also
- Namespace Aspose::Cells
- Library Aspose.Cells for C++