summaryrefslogtreecommitdiff
path: root/col.go
diff options
context:
space:
mode:
Diffstat (limited to 'col.go')
-rw-r--r--col.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/col.go b/col.go
index ad63b8c..6b73fdc 100644
--- a/col.go
+++ b/col.go
@@ -22,7 +22,7 @@ const (
// worksheet name and column name. For example, get visible state of column D
// in Sheet1:
//
-// visiable, err := xlsx.GetColVisible("Sheet1", "D")
+// visiable, err := f.GetColVisible("Sheet1", "D")
//
func (f *File) GetColVisible(sheet, col string) (bool, error) {
visible := true
@@ -51,7 +51,7 @@ func (f *File) GetColVisible(sheet, col string) (bool, error) {
// SetColVisible provides a function to set visible of a single column by given
// worksheet name and column name. For example, hide column D in Sheet1:
//
-// err := xlsx.SetColVisible("Sheet1", "D", false)
+// err := f.SetColVisible("Sheet1", "D", false)
//
func (f *File) SetColVisible(sheet, col string, visible bool) error {
colNum, err := ColumnNameToNumber(col)
@@ -91,7 +91,7 @@ func (f *File) SetColVisible(sheet, col string, visible bool) error {
// column by given worksheet name and column name. For example, get outline
// level of column D in Sheet1:
//
-// level, err := xlsx.GetColOutlineLevel("Sheet1", "D")
+// level, err := f.GetColOutlineLevel("Sheet1", "D")
//
func (f *File) GetColOutlineLevel(sheet, col string) (uint8, error) {
level := uint8(0)
@@ -119,7 +119,7 @@ func (f *File) GetColOutlineLevel(sheet, col string) (uint8, error) {
// column by given worksheet name and column name. For example, set outline
// level of column D in Sheet1 to 2:
//
-// err := xlsx.SetColOutlineLevel("Sheet1", "D", 2)
+// err := f.SetColOutlineLevel("Sheet1", "D", 2)
//
func (f *File) SetColOutlineLevel(sheet, col string, level uint8) error {
colNum, err := ColumnNameToNumber(col)
@@ -158,8 +158,8 @@ func (f *File) SetColOutlineLevel(sheet, col string, level uint8) error {
// SetColWidth provides a function to set the width of a single column or
// multiple columns. For example:
//
-// xlsx := excelize.NewFile()
-// err := xlsx.SetColWidth("Sheet1", "A", "H", 20)
+// f := excelize.NewFile()
+// err := f.SetColWidth("Sheet1", "A", "H", 20)
//
func (f *File) SetColWidth(sheet, startcol, endcol string, width float64) error {
min, err := ColumnNameToNumber(startcol)
@@ -348,7 +348,7 @@ func (f *File) GetColWidth(sheet, col string) (float64, error) {
// InsertCol provides a function to insert a new column before given column
// index. For example, create a new column before column C in Sheet1:
//
-// err := xlsx.InsertCol("Sheet1", "C")
+// err := f.InsertCol("Sheet1", "C")
//
func (f *File) InsertCol(sheet, col string) error {
num, err := ColumnNameToNumber(col)
@@ -361,7 +361,7 @@ func (f *File) InsertCol(sheet, col string) error {
// RemoveCol provides a function to remove single column by given worksheet
// name and column index. For example, remove column C in Sheet1:
//
-// err := xlsx.RemoveCol("Sheet1", "C")
+// err := f.RemoveCol("Sheet1", "C")
//
// Use this method with caution, which will affect changes in references such
// as formulas, charts, and so on. If there is any referenced value of the