From f05df2a0182ee5761f5fbe7e56020313a0ab0b61 Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Wed, 18 Jan 2017 14:47:23 +0800 Subject: - 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 --- xmlWorksheet.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'xmlWorksheet.go') 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 -- cgit v1.2.1