Browse Source

Add custom height and zero height attributes in sheetFormatPr element.

Ri Xu 9 years ago
parent
commit
9e0aca2223
2 changed files with 3 additions and 1 deletions
  1. 1 1
      LICENSE
  2. 2 0
      xmlWorksheet.go

+ 1 - 1
LICENSE

@@ -11,7 +11,7 @@ modification, are permitted provided that the following conditions are met:
   this list of conditions and the following disclaimer in the documentation
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.
   and/or other materials provided with the distribution.
 
 
-* Neither the name of [project] nor the names of its
+* Neither the name of Excelize nor the names of its
   contributors may be used to endorse or promote products derived from
   contributors may be used to endorse or promote products derived from
   this software without specific prior written permission.
   this software without specific prior written permission.
 
 

+ 2 - 0
xmlWorksheet.go

@@ -112,6 +112,8 @@ type xlsxPageMargins struct {
 type xlsxSheetFormatPr struct {
 type xlsxSheetFormatPr struct {
 	DefaultColWidth  float64 `xml:"defaultColWidth,attr,omitempty"`
 	DefaultColWidth  float64 `xml:"defaultColWidth,attr,omitempty"`
 	DefaultRowHeight float64 `xml:"defaultRowHeight,attr"`
 	DefaultRowHeight float64 `xml:"defaultRowHeight,attr"`
+	CustomHeight     float64 `xml:"customHeight,attr,omitempty"`
+	ZeroHeight       float64 `xml:"zeroHeight,attr,omitempty"`
 	OutlineLevelCol  uint8   `xml:"outlineLevelCol,attr,omitempty"`
 	OutlineLevelCol  uint8   `xml:"outlineLevelCol,attr,omitempty"`
 	OutlineLevelRow  uint8   `xml:"outlineLevelRow,attr,omitempty"`
 	OutlineLevelRow  uint8   `xml:"outlineLevelRow,attr,omitempty"`
 }
 }