SetHyperlink
function SetHyperlink(
sRange: string = null,
sAddress: string = null,
subAddress: string = null,
sScreenTip: string = null,
sTextToDisplay: string = null,
): void
Description
Adds a hyperlink to the specified range.
Parameters
- sRange
string
null The range where the hyperlink will be added to.
- sAddress
string
null The link address.
- subAddress
string
null The link subaddress to insert internal sheet hyperlinks.
- sScreenTip
string
null The screen tip text.
- sTextToDisplay
string
null The link text that will be displayed on the sheet.
Returns
void
Try It
var oWorksheet = Api.GetActiveSheet();
oWorksheet.SetHyperlink("A1", "https://api.onlyoffice.com/docbuilder/basic", "Api ONLYOFFICE", "ONLYOFFICE for developers");