//次のサンプルコードは、setHyperlink メソッドを使用します。
sheet.setHyperlink(0, 2, {
url: 'https://www.grapecity.com/spreadjs',
tooltip: 'baidu',
linkColor: 'blue',
visitedLinkColor: 'red',
target: GC.Spread.Sheets.Hyperlink.HyperlinkTargetType.blank,
command: 'navigationLeft'
}, GC.Spread.Sheets.SheetArea.viewport);
sheet.setHyperlink(1, 1, {
url: 'https://www.grapecity.com/spreadjs',
tooltip: 'baidu',
setUnderlineToStyle: true;
setForeColorToStyle: true;
target: GC.Spread.Sheets.Hyperlink.HyperlinkTargetType.top,
command: function() { console.log('Only show this message when click the hyperlink.')}
}, GC.Spread.Sheets.SheetArea.viewport);