SetHyperlink
Adds 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. |
subAddress |
string
|
The link subaddress to insert internal sheet hyperlinks. |
sScreenTip |
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");
var 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