summaryrefslogtreecommitdiff
path: root/cell.go
diff options
context:
space:
mode:
Diffstat (limited to 'cell.go')
-rw-r--r--cell.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/cell.go b/cell.go
index f81f36c..652dc9f 100644
--- a/cell.go
+++ b/cell.go
@@ -206,7 +206,14 @@ func (f *File) SetCellFormula(sheet, axis, formula string) {
}
// SetCellHyperLink provides function to set cell hyperlink by given sheet index
-// and link URL address. Only support external link currently.
+// and link URL address. Only support external link currently. For example: add
+// hyperLink for Sheet1!A3:
+//
+// xlsx.SetCellHyperLink("Sheet1", "A3", "https://github.com/xuri/excelize")
+// // Set underline and font color style for the cell.
+// style, _ := xlsx.NewStyle(`{"font":{"color":"#1265BE","underline":"single"}}`)
+// xlsx.SetCellStyle("Sheet1", "A3", "A3", style)
+//
func (f *File) SetCellHyperLink(sheet, axis, link string) {
xlsx := f.workSheetReader(sheet)
axis = f.mergeCellsParser(xlsx, axis)