From b7b937a8a3e1e92669aaf63d2cc97dc2fc865736 Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Wed, 13 Sep 2017 22:17:40 +0800 Subject: [PATCH] godoc updated. --- cell.go | 22 +++++++++++----------- sheet.go | 4 ++-- table.go | 4 ++-- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/cell.go b/cell.go index f3aa90b..d0f747a 100644 --- a/cell.go +++ b/cell.go @@ -137,8 +137,8 @@ func (f *File) GetCellStyle(sheet, axis string) int { return f.prepareCellStyle(xlsx, cell, xlsx.SheetData.Row[xAxis].C[yAxis].S) } -// GetCellFormula provides function to get formula from cell by given sheet -// index and axis in XLSX file. +// GetCellFormula provides function to get formula from cell by given worksheet +// name and axis in XLSX file. func (f *File) GetCellFormula(sheet, axis string) string { xlsx := f.workSheetReader(sheet) axis = f.mergeCellsParser(xlsx, axis) @@ -196,10 +196,10 @@ func (f *File) SetCellFormula(sheet, axis, formula string) { } } -// SetCellHyperLink provides function to set cell hyperlink by given sheet index -// and link URL address. LinkType defines two types of hyperlink "External" for -// web site or "Location" for moving to one of cell in this workbook. The below -// is example for external link. +// SetCellHyperLink provides function to set cell hyperlink by given worksheet +// name and link URL address. LinkType defines two types of hyperlink "External" +// for web site or "Location" for moving to one of cell in this workbook. The +// below is example for external link. // // xlsx.SetCellHyperLink("Sheet1", "A3", "https://github.com/xuri/excelize", "External") // // Set underline and font color style for the cell. @@ -232,11 +232,11 @@ func (f *File) SetCellHyperLink(sheet, axis, link, linkType string) { xlsx.Hyperlinks.Hyperlink = append(xlsx.Hyperlinks.Hyperlink, hyperlink) } -// GetCellHyperLink provides function to get cell hyperlink by given sheet index -// and axis. Boolean type value link will be ture if the cell has a hyperlink -// and the target is the address of the hyperlink. Otherwise, the value of link -// will be false and the value of the target will be a blank string. For example -// get hyperlink of Sheet1!H6: +// GetCellHyperLink provides function to get cell hyperlink by given worksheet +// name and axis. Boolean type value link will be ture if the cell has a +// hyperlink and the target is the address of the hyperlink. Otherwise, the +// value of link will be false and the value of the target will be a blank +// string. For example get hyperlink of Sheet1!H6: // // link, target := xlsx.GetCellHyperLink("Sheet1", "H6") // diff --git a/sheet.go b/sheet.go index 8a69f4a..e8d381f 100644 --- a/sheet.go +++ b/sheet.go @@ -346,8 +346,8 @@ func (f *File) getSheetMap() map[string]string { return maps } -// SetSheetBackground provides function to set background picture by given sheet -// index. +// SetSheetBackground provides function to set background picture by given +// worksheet name. func (f *File) SetSheetBackground(sheet, picture string) error { var err error // Check picture exists first. diff --git a/table.go b/table.go index 68e686a..104202b 100644 --- a/table.go +++ b/table.go @@ -20,8 +20,8 @@ func parseFormatTableSet(formatSet string) *formatTable { return &format } -// AddTable provides the method to add table in a worksheet by given sheet -// index, coordinate area and format set. For example, create a table of A1:D5 +// AddTable provides the method to add table in a worksheet by given worksheet +// name, coordinate area and format set. For example, create a table of A1:D5 // on Sheet1: // // xlsx.AddTable("Sheet1", "A1", "D5", ``)