HyperlinkCollection
Overview
HyperlinkCollection is a class in Aspose.Cells FOSS for C++.
Encapsulates the hyperlinks defined for a worksheet.
This class provides 5 methods for working with HyperlinkCollection objects in C++ programs.
Available methods include: Add, GetCount, RemoveAt.
All public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.
Methods
| Signature | Description |
|---|---|
GetCount() → int | Gets the number of hyperlinks in the worksheet. |
Add(firstRow: int, firstColumn: int, totalRows: int, totalColumns: int, address: std::string_view) → int | Adds a hyperlink anchored at a cell or rectangular range specified by zero-based coordinates. The zero-based first row index. The zero-based first column index. The total number of rows. The total number of columns. The hyperlink address. The zero-based index of the added hyperlink. |
Add(cellName: std::string_view, totalRows: int, totalColumns: int, address: std::string_view) → int | Adds a hyperlink anchored at a cell or rectangular range specified by its top-left A1 reference. The top-left cell reference in A1 notation. The total number of rows. The total number of columns. The hyperlink address. The zero-based index of the added hyperlink. |
Add(startCellName: std::string_view, endCellName: std::string_view, address: std::string_view, textToDisplay: std::string_view, screenTip: std::string_view) → int | Adds a hyperlink over the specified A1 range and optional display text metadata. The start cell reference in A1 notation. The end cell reference in A1 notation. The hyperlink address. The display text, or empty for none. The screen tip text, or empty for none. The zero-based index of the added hyperlink. |
RemoveAt(index: int) | Removes the hyperlink at the specified zero-based index. The zero-based index of the hyperlink to remove. |