add method

Contents
[ ]

add

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

Returns

Hyperlink object index.

def add(self, cell_name, total_rows, total_columns, address):
    ...
ParameterTypeDescription
cell_namestrCell name.
total_rowsintNumber of rows in this hyperlink range.
total_columnsintNumber of columns of this hyperlink range.
addressstrAddress of the hyperlink.

add

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

Returns

Hyperlink object index.

def add(self, first_row, first_column, total_rows, total_columns, address):
    ...
ParameterTypeDescription
first_rowintFirst row of the hyperlink range.
first_columnintFirst column of the hyperlink range.
total_rowsintNumber of rows in this hyperlink range.
total_columnsintNumber of columns of this hyperlink range.
addressstrAddress of the hyperlink.

Example

from aspose.cells import Workbook

# Instantiating a Workbook object
excel = Workbook()
worksheet = excel.worksheets[0]
worksheet.hyperlinks.add("A4", 1, 1, "http://www.aspose.com")
worksheet.hyperlinks.add("A5", 1, 1, "c:\\book1.xls")

add

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

Returns

Hyperlink object index.

def add(self, start_cell_name, end_cell_name, address, text_to_display, screen_tip):
    ...
ParameterTypeDescription
start_cell_namestrThe top-left cell of the range.
end_cell_namestrThe bottom-right cell of the range.
addressstrAddress of the hyperlink.
text_to_displaystrThe text to be displayed for the specified hyperlink.
screen_tipstrThe screenTip text for the specified hyperlink.

See Also