HyperlinkCollection

HyperlinkCollection class

Encapsulates a collection of Hyperlink objects.

Methods

NameDescription
add(firstRow, firstColumn, totalRows, totalColumns, address)Adds a hyperlink to a specified cell or a range of cells.
add(cellName, totalRows, totalColumns, address)Adds a hyperlink to a specified cell or a range of cells.
add(startCellName, endCellName, address, textToDisplay, screenTip)Adds a hyperlink to a specified cell or a range of cells.
add()Reserved for internal use.
clear()Clears all hyperlinks.
contains()Reserved for internal use.
get(index)Gets the Hyperlink element at the specified index.
get()Reserved for internal use.
getCount()
indexOf()Reserved for internal use.
iterator()
removeAt(index)Remove the hyperlink at the specified index in this collection.

add(firstRow, firstColumn, totalRows, totalColumns, address)

Adds a hyperlink to a specified cell or a range of cells.

ParameterTypeDescription
firstRowNumberFirst row of the hyperlink range.
firstColumnNumberFirst column of the hyperlink range.
totalRowsNumberNumber of rows in this hyperlink range.
totalColumnsNumberNumber of columns of this hyperlink range.
addressStringAddress of the hyperlink.

Returns: Number — Number Hyperlink object index.

Example:

var excel = new aspose.cells.Workbook();
var worksheet = excel.getWorksheets().get(0);
worksheet.getHyperlinks().add("A4", 1, 1, "http://www.aspose.com");
worksheet.getHyperlinks().add("A5", 1, 1, "c:\\book1.xls");

add(cellName, totalRows, totalColumns, address)

Adds a hyperlink to a specified cell or a range of cells.

ParameterTypeDescription
cellNameStringCell name.
totalRowsNumberNumber of rows in this hyperlink range.
totalColumnsNumberNumber of columns of this hyperlink range.
addressStringAddress of the hyperlink.

Returns: Number — Number Hyperlink object index.

add(startCellName, endCellName, address, textToDisplay, screenTip)

Adds a hyperlink to a specified cell or a range of cells.

ParameterTypeDescription
startCellNameStringThe top-left cell of the range.
endCellNameStringThe bottom-right cell of the range.
addressStringAddress of the hyperlink.
textToDisplayStringThe text to be displayed for the specified hyperlink.
screenTipStringThe screenTip text for the specified hyperlink.

Returns: Number — Number Hyperlink object index.

add()

Reserved for internal use.

clear()

Clears all hyperlinks.

contains()

Reserved for internal use.

get(index)

Gets the Hyperlink element at the specified index.

ParameterTypeDescription
indexNumberThe zero based index of the element.

Returns: Hyperlink — Hyperlink The element at the specified index.

get()

Reserved for internal use.

getCount()

indexOf()

Reserved for internal use.

iterator()

removeAt(index)

Remove the hyperlink at the specified index in this collection.

ParameterTypeDescription
indexNumberThe zero based index of the element.