Get Started
Usage API
More information

SetHyperlink

Add a hyperlink to the specified range.

Parameters:

Name Type Description
sRange string

The range where the hyperlink will be added to.

sAddress string

The link address.

ScreenTip string

The screen tip text.

sTextToDisplay string

The link text that will be displayed on the sheet.

Returns:

This method doesn't return any data.

Example

Copy code
builder.CreateFile("xlsx");
oWorksheet = Api.GetActiveSheet();
oWorksheet.SetHyperlink("A1", "https://api.onlyoffice.com/docbuilder/basic", "Api ONLYOFFICE", "ONLYOFFICE for developers");
builder.SaveFile("xlsx", "SetHyperlink.xlsx");
builder.CloseFile();

Resulting document