Skip to content

Commit b7b937a

Browse files
committed
godoc updated.
1 parent f05f799 commit b7b937a

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

cell.go

+11-11
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ func (f *File) GetCellStyle(sheet, axis string) int {
137137
return f.prepareCellStyle(xlsx, cell, xlsx.SheetData.Row[xAxis].C[yAxis].S)
138138
}
139139

140-
// GetCellFormula provides function to get formula from cell by given sheet
141-
// index and axis in XLSX file.
140+
// GetCellFormula provides function to get formula from cell by given worksheet
141+
// name and axis in XLSX file.
142142
func (f *File) GetCellFormula(sheet, axis string) string {
143143
xlsx := f.workSheetReader(sheet)
144144
axis = f.mergeCellsParser(xlsx, axis)
@@ -196,10 +196,10 @@ func (f *File) SetCellFormula(sheet, axis, formula string) {
196196
}
197197
}
198198

199-
// SetCellHyperLink provides function to set cell hyperlink by given sheet index
200-
// and link URL address. LinkType defines two types of hyperlink "External" for
201-
// web site or "Location" for moving to one of cell in this workbook. The below
202-
// is example for external link.
199+
// SetCellHyperLink provides function to set cell hyperlink by given worksheet
200+
// name and link URL address. LinkType defines two types of hyperlink "External"
201+
// for web site or "Location" for moving to one of cell in this workbook. The
202+
// below is example for external link.
203203
//
204204
// xlsx.SetCellHyperLink("Sheet1", "A3", "https://github.com/xuri/excelize", "External")
205205
// // Set underline and font color style for the cell.
@@ -232,11 +232,11 @@ func (f *File) SetCellHyperLink(sheet, axis, link, linkType string) {
232232
xlsx.Hyperlinks.Hyperlink = append(xlsx.Hyperlinks.Hyperlink, hyperlink)
233233
}
234234

235-
// GetCellHyperLink provides function to get cell hyperlink by given sheet index
236-
// and axis. Boolean type value link will be ture if the cell has a hyperlink
237-
// and the target is the address of the hyperlink. Otherwise, the value of link
238-
// will be false and the value of the target will be a blank string. For example
239-
// get hyperlink of Sheet1!H6:
235+
// GetCellHyperLink provides function to get cell hyperlink by given worksheet
236+
// name and axis. Boolean type value link will be ture if the cell has a
237+
// hyperlink and the target is the address of the hyperlink. Otherwise, the
238+
// value of link will be false and the value of the target will be a blank
239+
// string. For example get hyperlink of Sheet1!H6:
240240
//
241241
// link, target := xlsx.GetCellHyperLink("Sheet1", "H6")
242242
//

sheet.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ func (f *File) getSheetMap() map[string]string {
346346
return maps
347347
}
348348

349-
// SetSheetBackground provides function to set background picture by given sheet
350-
// index.
349+
// SetSheetBackground provides function to set background picture by given
350+
// worksheet name.
351351
func (f *File) SetSheetBackground(sheet, picture string) error {
352352
var err error
353353
// Check picture exists first.

table.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ func parseFormatTableSet(formatSet string) *formatTable {
2020
return &format
2121
}
2222

23-
// AddTable provides the method to add table in a worksheet by given sheet
24-
// index, coordinate area and format set. For example, create a table of A1:D5
23+
// AddTable provides the method to add table in a worksheet by given worksheet
24+
// name, coordinate area and format set. For example, create a table of A1:D5
2525
// on Sheet1:
2626
//
2727
// xlsx.AddTable("Sheet1", "A1", "D5", ``)

0 commit comments

Comments
 (0)