Skip to content

Commit 200437d

Browse files
committed
Fix document typo.
1 parent a9c7d66 commit 200437d

File tree

3 files changed

+28
-32
lines changed

3 files changed

+28
-32
lines changed

sheet.go

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -536,13 +536,9 @@ func parseFormatPanesSet(formatSet string) *formatPanes {
536536
// | been applied, dividing the pane into right and left
537537
// | regions. In that case, this value specifies the left pane
538538
// |
539-
// | Top right pane, when both vertical and horizontal
539+
// topRight (Top Right Pane) | Top right pane, when both vertical and horizontal
540540
// | splits are applied.
541541
// |
542-
// topRight (Top Right Pane) | This value is also used when only a vertical split has
543-
// | splits are applied.
544-
// |
545-
// |
546542
// | This value is also used when only a vertical split has
547543
// | been applied, dividing the pane into right and left
548544
// | regions. In that case, this value specifies the right
@@ -577,19 +573,19 @@ func parseFormatPanesSet(formatSet string) *formatPanes {
577573
// set of ranges.
578574
//
579575
// An example of how to freeze column A in the Sheet1 and set the active cell on
580-
// Sheet1!A16:
576+
// Sheet1!K16:
581577
//
582-
// xlsx.SetPanes("Sheet1", `{"freeze":true,"split":false,"x_split":1,"y_split":0,"topLeftCell":"B1","activePane":"topRight","panes":[{"sqref":"K16","active_cell":"K16","pane":"topRight"}]}`)
578+
// xlsx.SetPanes("Sheet1", `{"freeze":true,"split":false,"x_split":1,"y_split":0,"top_left_cell":"B1","active_pane":"topRight","panes":[{"sqref":"K16","active_cell":"K16","pane":"topRight"}]}`)
583579
//
584580
// An example of how to freeze rows 1 to 9 in the Sheet1 and set the active cell
585-
// on Sheet1!A11:
581+
// ranges on Sheet1!A11:XFD11:
586582
//
587-
// xlsx.SetPanes("Sheet1", `{"freeze":true,"split":false,"x_split":0,"y_split":9,"topLeftCell":"A34","activePane":"bottomLeft","panes":[{"sqref":"A11:XFD11","active_cell":"A11","pane":"bottomLeft"}]}`)
583+
// xlsx.SetPanes("Sheet1", `{"freeze":true,"split":false,"x_split":0,"y_split":9,"top_left_cell":"A34","active_pane":"bottomLeft","panes":[{"sqref":"A11:XFD11","active_cell":"A11","pane":"bottomLeft"}]}`)
588584
//
589585
// An example of how to create split panes in the Sheet1 and set the active cell
590586
// on Sheet1!J60:
591587
//
592-
// xlsx.SetPanes("Sheet1", `{"freeze":false,"split":true,"x_split":3270,"y_split":1800,"topLeftCell":"N57","activePane":"bottomLeft","panes":[{"sqref":"I36","active_cell":"I36"},{"sqref":"G33","active_cell":"G33","pane":"topRight"},{"sqref":"J60","active_cell":"J60","pane":"bottomLeft"},{"sqref":"O60","active_cell":"O60","pane":"bottomRight"}]}`)
588+
// xlsx.SetPanes("Sheet1", `{"freeze":false,"split":true,"x_split":3270,"y_split":1800,"top_left_cell":"N57","active_pane":"bottomLeft","panes":[{"sqref":"I36","active_cell":"I36"},{"sqref":"G33","active_cell":"G33","pane":"topRight"},{"sqref":"J60","active_cell":"J60","pane":"bottomLeft"},{"sqref":"O60","active_cell":"O60","pane":"bottomRight"}]}`)
593589
//
594590
// An example of how to unfreeze and remove all panes on Sheet1:
595591
//

styles.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,13 +1236,13 @@ func parseFormatStyleSet(style string) (*formatStyle, error) {
12361236
// 55 | 4E0A5348/4E0B5348h"65F6"mm"5206
12371237
// 56 | 4E0A5348/4E0B5348h"65F6"mm"5206"ss"79D2
12381238
// 57 | yyyy"5E74"m"6708
1239-
// 58 | m"6708"d"65E5"`,
1239+
// 58 | m"6708"d"65E5"
12401240
//
12411241
// Number format code in ja-jp language:
12421242
//
12431243
// Index | Symbol
12441244
// -------+-------------------------------------------
1245-
// 27 | [$-411]ge.m.
1245+
// 27 | [$-411]ge.m.d
12461246
// 28 | [$-411]ggge"年"m"月"d"日
12471247
// 29 | [$-411]ggge"年"m"月"d"日
12481248
// 30 | m/d/y
@@ -1251,18 +1251,18 @@ func parseFormatStyleSet(style string) (*formatStyle, error) {
12511251
// 33 | h"時"mm"分"ss"秒
12521252
// 34 | yyyy"年"m"月
12531253
// 35 | m"月"d"日
1254-
// 36 | [$-411]ge.m.
1255-
// 50 | [$-411]ge.m.
1254+
// 36 | [$-411]ge.m.d
1255+
// 50 | [$-411]ge.m.d
12561256
// 51 | [$-411]ggge"年"m"月"d"日
12571257
// 52 | yyyy"年"m"月
12581258
// 53 | m"月"d"日
12591259
// 54 | [$-411]ggge"年"m"月"d"日
12601260
// 55 | yyyy"年"m"月
12611261
// 56 | m"月"d"日
1262-
// 57 | [$-411]ge.m.
1262+
// 57 | [$-411]ge.m.d
12631263
// 58 | [$-411]ggge"年"m"月"d"日"
12641264
//
1265-
// Number format code in th-th language:
1265+
// Number format code in ko-kr language:
12661266
//
12671267
// Index | Symbol
12681268
// -------+-------------------------------------------
@@ -1291,7 +1291,7 @@ func parseFormatStyleSet(style string) (*formatStyle, error) {
12911291
//
12921292
// Index | Symbol
12931293
// -------+-------------------------------------------
1294-
// 27 | [$-411]ge.m.
1294+
// 27 | [$-411]ge.m.d
12951295
// 28 | [$-411]ggge"5E74"m"6708"d"65E5
12961296
// 29 | [$-411]ggge"5E74"m"6708"d"65E5
12971297
// 30 | m/d/y
@@ -1300,15 +1300,15 @@ func parseFormatStyleSet(style string) (*formatStyle, error) {
13001300
// 33 | h"6642"mm"5206"ss"79D2
13011301
// 34 | yyyy"5E74"m"6708
13021302
// 35 | m"6708"d"65E5
1303-
// 36 | [$-411]ge.m.
1304-
// 50 | [$-411]ge.m.
1303+
// 36 | [$-411]ge.m.d
1304+
// 50 | [$-411]ge.m.d
13051305
// 51 | [$-411]ggge"5E74"m"6708"d"65E5
13061306
// 52 | yyyy"5E74"m"6708
13071307
// 53 | m"6708"d"65E5
13081308
// 54 | [$-411]ggge"5E74"m"6708"d"65E5
13091309
// 55 | yyyy"5E74"m"6708
13101310
// 56 | m"6708"d"65E5
1311-
// 57 | [$-411]ge.m.
1311+
// 57 | [$-411]ge.m.d
13121312
// 58 | [$-411]ggge"5E74"m"6708"d"65E5"
13131313
//
13141314
// Number format code with unicode values provided for language glyphs where
@@ -1336,7 +1336,7 @@ func parseFormatStyleSet(style string) (*formatStyle, error) {
13361336
// 57 | yyyy"5E74" mm"6708" dd"65E5
13371337
// 58 | mm-dd
13381338
//
1339-
// Number format code in ko-kr language:
1339+
// Number format code in th-th language:
13401340
//
13411341
// Index | Symbol
13421342
// -------+-------------------------------------------

table.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ func parseAutoFilterSet(formatSet string) *formatAutoFilter {
157157
}
158158

159159
// AutoFilter provides the method to add auto filter in a worksheet by given
160-
// worksheet name, coordinate area and settings. An autofilter in Excel is a way
161-
// of filtering a 2D range of data based on some simple criteria. For example
162-
// applying an autofilter to a cell range A1:D4 in the worksheet 1:
160+
// worksheet name, coordinate area and settings. An autofilter in Excel is a
161+
// way of filtering a 2D range of data based on some simple criteria. For
162+
// example applying an autofilter to a cell range A1:D4 in the Sheet1:
163163
//
164164
// err = xlsx.AutoFilter("Sheet1", "A1", "D4", "")
165165
//
@@ -170,15 +170,15 @@ func parseAutoFilterSet(formatSet string) *formatAutoFilter {
170170
// column defines the filter columns in a autofilter range based on simple
171171
// criteria
172172
//
173-
// It isn't sufficient to just specify the filter condition. You must also hide
174-
// any rows that don't match the filter condition. Rows are hidden using the
175-
// SetRowVisible() method. Excelize can't filter rows automatically since this
176-
// isn't part of the file format.
173+
// It isn't sufficient to just specify the filter condition. You must also
174+
// hide any rows that don't match the filter condition. Rows are hidden using
175+
// the SetRowVisible() method. Excelize can't filter rows automatically since
176+
// this isn't part of the file format.
177177
//
178178
// Setting a filter criteria for a column:
179179
//
180-
// expression defines the conditions, the following operators are available for
181-
// setting the filter criteria:
180+
// expression defines the conditions, the following operators are available
181+
// for setting the filter criteria:
182182
//
183183
// ==
184184
// !=
@@ -189,8 +189,8 @@ func parseAutoFilterSet(formatSet string) *formatAutoFilter {
189189
// and
190190
// or
191191
//
192-
// An expression can comprise a single statement or two statements separated by
193-
// the and and or operators. For example:
192+
// An expression can comprise a single statement or two statements separated
193+
// by the 'and' and 'or' operators. For example:
194194
//
195195
// x < 2000
196196
// x > 2000

0 commit comments

Comments
 (0)