forked from p30928647/excelize
Fix document typo.
This commit is contained in:
parent
a9c7d6637c
commit
200437d778
16
sheet.go
16
sheet.go
|
@ -536,13 +536,9 @@ func parseFormatPanesSet(formatSet string) *formatPanes {
|
||||||
// | been applied, dividing the pane into right and left
|
// | been applied, dividing the pane into right and left
|
||||||
// | regions. In that case, this value specifies the left pane
|
// | regions. In that case, this value specifies the left pane
|
||||||
// |
|
// |
|
||||||
// | Top right pane, when both vertical and horizontal
|
// topRight (Top Right Pane) | Top right pane, when both vertical and horizontal
|
||||||
// | splits are applied.
|
// | splits are applied.
|
||||||
// |
|
// |
|
||||||
// topRight (Top Right Pane) | This value is also used when only a vertical split has
|
|
||||||
// | splits are applied.
|
|
||||||
// |
|
|
||||||
// |
|
|
||||||
// | This value is also used when only a vertical split has
|
// | This value is also used when only a vertical split has
|
||||||
// | been applied, dividing the pane into right and left
|
// | been applied, dividing the pane into right and left
|
||||||
// | regions. In that case, this value specifies the right
|
// | regions. In that case, this value specifies the right
|
||||||
|
@ -577,19 +573,19 @@ func parseFormatPanesSet(formatSet string) *formatPanes {
|
||||||
// set of ranges.
|
// set of ranges.
|
||||||
//
|
//
|
||||||
// An example of how to freeze column A in the Sheet1 and set the active cell on
|
// An example of how to freeze column A in the Sheet1 and set the active cell on
|
||||||
// Sheet1!A16:
|
// Sheet1!K16:
|
||||||
//
|
//
|
||||||
// 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"}]}`)
|
// 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"}]}`)
|
||||||
//
|
//
|
||||||
// An example of how to freeze rows 1 to 9 in the Sheet1 and set the active cell
|
// An example of how to freeze rows 1 to 9 in the Sheet1 and set the active cell
|
||||||
// on Sheet1!A11:
|
// ranges on Sheet1!A11:XFD11:
|
||||||
//
|
//
|
||||||
// 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"}]}`)
|
// 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"}]}`)
|
||||||
//
|
//
|
||||||
// An example of how to create split panes in the Sheet1 and set the active cell
|
// An example of how to create split panes in the Sheet1 and set the active cell
|
||||||
// on Sheet1!J60:
|
// on Sheet1!J60:
|
||||||
//
|
//
|
||||||
// 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"}]}`)
|
// 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"}]}`)
|
||||||
//
|
//
|
||||||
// An example of how to unfreeze and remove all panes on Sheet1:
|
// An example of how to unfreeze and remove all panes on Sheet1:
|
||||||
//
|
//
|
||||||
|
|
22
styles.go
22
styles.go
|
@ -1236,13 +1236,13 @@ func parseFormatStyleSet(style string) (*formatStyle, error) {
|
||||||
// 55 | 4E0A5348/4E0B5348h"65F6"mm"5206
|
// 55 | 4E0A5348/4E0B5348h"65F6"mm"5206
|
||||||
// 56 | 4E0A5348/4E0B5348h"65F6"mm"5206"ss"79D2
|
// 56 | 4E0A5348/4E0B5348h"65F6"mm"5206"ss"79D2
|
||||||
// 57 | yyyy"5E74"m"6708
|
// 57 | yyyy"5E74"m"6708
|
||||||
// 58 | m"6708"d"65E5"`,
|
// 58 | m"6708"d"65E5"
|
||||||
//
|
//
|
||||||
// Number format code in ja-jp language:
|
// Number format code in ja-jp language:
|
||||||
//
|
//
|
||||||
// Index | Symbol
|
// Index | Symbol
|
||||||
// -------+-------------------------------------------
|
// -------+-------------------------------------------
|
||||||
// 27 | [$-411]ge.m.
|
// 27 | [$-411]ge.m.d
|
||||||
// 28 | [$-411]ggge"年"m"月"d"日
|
// 28 | [$-411]ggge"年"m"月"d"日
|
||||||
// 29 | [$-411]ggge"年"m"月"d"日
|
// 29 | [$-411]ggge"年"m"月"d"日
|
||||||
// 30 | m/d/y
|
// 30 | m/d/y
|
||||||
|
@ -1251,18 +1251,18 @@ func parseFormatStyleSet(style string) (*formatStyle, error) {
|
||||||
// 33 | h"時"mm"分"ss"秒
|
// 33 | h"時"mm"分"ss"秒
|
||||||
// 34 | yyyy"年"m"月
|
// 34 | yyyy"年"m"月
|
||||||
// 35 | m"月"d"日
|
// 35 | m"月"d"日
|
||||||
// 36 | [$-411]ge.m.
|
// 36 | [$-411]ge.m.d
|
||||||
// 50 | [$-411]ge.m.
|
// 50 | [$-411]ge.m.d
|
||||||
// 51 | [$-411]ggge"年"m"月"d"日
|
// 51 | [$-411]ggge"年"m"月"d"日
|
||||||
// 52 | yyyy"年"m"月
|
// 52 | yyyy"年"m"月
|
||||||
// 53 | m"月"d"日
|
// 53 | m"月"d"日
|
||||||
// 54 | [$-411]ggge"年"m"月"d"日
|
// 54 | [$-411]ggge"年"m"月"d"日
|
||||||
// 55 | yyyy"年"m"月
|
// 55 | yyyy"年"m"月
|
||||||
// 56 | m"月"d"日
|
// 56 | m"月"d"日
|
||||||
// 57 | [$-411]ge.m.
|
// 57 | [$-411]ge.m.d
|
||||||
// 58 | [$-411]ggge"年"m"月"d"日"
|
// 58 | [$-411]ggge"年"m"月"d"日"
|
||||||
//
|
//
|
||||||
// Number format code in th-th language:
|
// Number format code in ko-kr language:
|
||||||
//
|
//
|
||||||
// Index | Symbol
|
// Index | Symbol
|
||||||
// -------+-------------------------------------------
|
// -------+-------------------------------------------
|
||||||
|
@ -1291,7 +1291,7 @@ func parseFormatStyleSet(style string) (*formatStyle, error) {
|
||||||
//
|
//
|
||||||
// Index | Symbol
|
// Index | Symbol
|
||||||
// -------+-------------------------------------------
|
// -------+-------------------------------------------
|
||||||
// 27 | [$-411]ge.m.
|
// 27 | [$-411]ge.m.d
|
||||||
// 28 | [$-411]ggge"5E74"m"6708"d"65E5
|
// 28 | [$-411]ggge"5E74"m"6708"d"65E5
|
||||||
// 29 | [$-411]ggge"5E74"m"6708"d"65E5
|
// 29 | [$-411]ggge"5E74"m"6708"d"65E5
|
||||||
// 30 | m/d/y
|
// 30 | m/d/y
|
||||||
|
@ -1300,15 +1300,15 @@ func parseFormatStyleSet(style string) (*formatStyle, error) {
|
||||||
// 33 | h"6642"mm"5206"ss"79D2
|
// 33 | h"6642"mm"5206"ss"79D2
|
||||||
// 34 | yyyy"5E74"m"6708
|
// 34 | yyyy"5E74"m"6708
|
||||||
// 35 | m"6708"d"65E5
|
// 35 | m"6708"d"65E5
|
||||||
// 36 | [$-411]ge.m.
|
// 36 | [$-411]ge.m.d
|
||||||
// 50 | [$-411]ge.m.
|
// 50 | [$-411]ge.m.d
|
||||||
// 51 | [$-411]ggge"5E74"m"6708"d"65E5
|
// 51 | [$-411]ggge"5E74"m"6708"d"65E5
|
||||||
// 52 | yyyy"5E74"m"6708
|
// 52 | yyyy"5E74"m"6708
|
||||||
// 53 | m"6708"d"65E5
|
// 53 | m"6708"d"65E5
|
||||||
// 54 | [$-411]ggge"5E74"m"6708"d"65E5
|
// 54 | [$-411]ggge"5E74"m"6708"d"65E5
|
||||||
// 55 | yyyy"5E74"m"6708
|
// 55 | yyyy"5E74"m"6708
|
||||||
// 56 | m"6708"d"65E5
|
// 56 | m"6708"d"65E5
|
||||||
// 57 | [$-411]ge.m.
|
// 57 | [$-411]ge.m.d
|
||||||
// 58 | [$-411]ggge"5E74"m"6708"d"65E5"
|
// 58 | [$-411]ggge"5E74"m"6708"d"65E5"
|
||||||
//
|
//
|
||||||
// Number format code with unicode values provided for language glyphs where
|
// Number format code with unicode values provided for language glyphs where
|
||||||
|
@ -1336,7 +1336,7 @@ func parseFormatStyleSet(style string) (*formatStyle, error) {
|
||||||
// 57 | yyyy"5E74" mm"6708" dd"65E5
|
// 57 | yyyy"5E74" mm"6708" dd"65E5
|
||||||
// 58 | mm-dd
|
// 58 | mm-dd
|
||||||
//
|
//
|
||||||
// Number format code in ko-kr language:
|
// Number format code in th-th language:
|
||||||
//
|
//
|
||||||
// Index | Symbol
|
// Index | Symbol
|
||||||
// -------+-------------------------------------------
|
// -------+-------------------------------------------
|
||||||
|
|
22
table.go
22
table.go
|
@ -157,9 +157,9 @@ func parseAutoFilterSet(formatSet string) *formatAutoFilter {
|
||||||
}
|
}
|
||||||
|
|
||||||
// AutoFilter provides the method to add auto filter in a worksheet by given
|
// AutoFilter provides the method to add auto filter in a worksheet by given
|
||||||
// worksheet name, coordinate area and settings. An autofilter in Excel is a way
|
// worksheet name, coordinate area and settings. An autofilter in Excel is a
|
||||||
// of filtering a 2D range of data based on some simple criteria. For example
|
// way of filtering a 2D range of data based on some simple criteria. For
|
||||||
// applying an autofilter to a cell range A1:D4 in the worksheet 1:
|
// example applying an autofilter to a cell range A1:D4 in the Sheet1:
|
||||||
//
|
//
|
||||||
// err = xlsx.AutoFilter("Sheet1", "A1", "D4", "")
|
// err = xlsx.AutoFilter("Sheet1", "A1", "D4", "")
|
||||||
//
|
//
|
||||||
|
@ -170,15 +170,15 @@ func parseAutoFilterSet(formatSet string) *formatAutoFilter {
|
||||||
// column defines the filter columns in a autofilter range based on simple
|
// column defines the filter columns in a autofilter range based on simple
|
||||||
// criteria
|
// criteria
|
||||||
//
|
//
|
||||||
// It isn't sufficient to just specify the filter condition. You must also hide
|
// It isn't sufficient to just specify the filter condition. You must also
|
||||||
// any rows that don't match the filter condition. Rows are hidden using the
|
// hide any rows that don't match the filter condition. Rows are hidden using
|
||||||
// SetRowVisible() method. Excelize can't filter rows automatically since this
|
// the SetRowVisible() method. Excelize can't filter rows automatically since
|
||||||
// isn't part of the file format.
|
// this isn't part of the file format.
|
||||||
//
|
//
|
||||||
// Setting a filter criteria for a column:
|
// Setting a filter criteria for a column:
|
||||||
//
|
//
|
||||||
// expression defines the conditions, the following operators are available for
|
// expression defines the conditions, the following operators are available
|
||||||
// setting the filter criteria:
|
// for setting the filter criteria:
|
||||||
//
|
//
|
||||||
// ==
|
// ==
|
||||||
// !=
|
// !=
|
||||||
|
@ -189,8 +189,8 @@ func parseAutoFilterSet(formatSet string) *formatAutoFilter {
|
||||||
// and
|
// and
|
||||||
// or
|
// or
|
||||||
//
|
//
|
||||||
// An expression can comprise a single statement or two statements separated by
|
// An expression can comprise a single statement or two statements separated
|
||||||
// the and and or operators. For example:
|
// by the 'and' and 'or' operators. For example:
|
||||||
//
|
//
|
||||||
// x < 2000
|
// x < 2000
|
||||||
// x > 2000
|
// x > 2000
|
||||||
|
|
Loading…
Reference in New Issue