Browse Source

godoc updated.

Ri Xu 8 years ago
parent
commit
b7b937a8a3
3 changed files with 15 additions and 15 deletions
  1. 11 11
      cell.go
  2. 2 2
      sheet.go
  3. 2 2
      table.go

+ 11 - 11
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")
 //

+ 2 - 2
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.

+ 2 - 2
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", ``)