summaryrefslogtreecommitdiff
path: root/xmlWorksheet.go
diff options
context:
space:
mode:
authorRi Xu <xuri.me@gmail.com>2017-01-18 14:47:23 +0800
committerRi Xu <xuri.me@gmail.com>2017-01-18 14:47:23 +0800
commitf05df2a0182ee5761f5fbe7e56020313a0ab0b61 (patch)
tree7aaf5365c9082931f9d4cdd080ff2932918164fb /xmlWorksheet.go
parenta99f0227b085d8f417f77864941650ef0e6273e4 (diff)
- New function `SetSheetName` and `SetColWidth` added, support rename sheet and set column width;
- Add escape characters of sheet name; - Update go test and fix typo
Diffstat (limited to 'xmlWorksheet.go')
-rw-r--r--xmlWorksheet.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/xmlWorksheet.go b/xmlWorksheet.go
index 9cc0e55..bc17403 100644
--- a/xmlWorksheet.go
+++ b/xmlWorksheet.go
@@ -228,19 +228,19 @@ type xlsxCols struct {
Col []xlsxCol `xml:"col"`
}
-// xlsxCol directly maps the col element in the namespace
-// http://schemas.openxmlformats.org/spreadsheetml/2006/main -
-// currently I have not checked it for completeness - it does as much
-// as I need.
+// xlsxCol directly maps the col (Column Width & Formatting). Defines column
+// width and column formatting for one or more columns of the worksheet.
type xlsxCol struct {
+ BestFit bool `xml:"bestFit,attr,omitempty"`
Collapsed bool `xml:"collapsed,attr"`
+ CustomWidth bool `xml:"customWidth,attr,omitempty"`
Hidden bool `xml:"hidden,attr"`
Max int `xml:"max,attr"`
Min int `xml:"min,attr"`
+ OutlineLevel uint8 `xml:"outlineLevel,attr,omitempty"`
+ Phonetic bool `xml:"phonetic,attr,omitempty"`
Style int `xml:"style,attr"`
Width float64 `xml:"width,attr"`
- CustomWidth int `xml:"customWidth,attr,omitempty"`
- OutlineLevel uint8 `xml:"outlineLevel,attr,omitempty"`
}
// xlsxDimension directly maps the dimension element in the namespace