From b6254209fe56c84a9ac99805ce3dd877a494e134 Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Sun, 26 Mar 2017 15:27:04 +0800 Subject: - Set text in cell align support, note that the parameters of the `SetCellStyle` function have changed; - go test updated --- xmlStyles.go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'xmlStyles.go') diff --git a/xmlStyles.go b/xmlStyles.go index 954e431..62bf0f5 100644 --- a/xmlStyles.go +++ b/xmlStyles.go @@ -277,10 +277,21 @@ type formatCellStyle struct { Color string `json:"color"` Style int `json:"style"` } `json:"border"` - Fill []struct { + Fill struct { Type string `json:"type"` Pattern int `json:"pattern"` Color []string `json:"color"` Shading int `json:"shading"` } `json:"fill"` + Alignment *struct { + Horizontal string `json:"horizontal"` + Indent int `json:"indent,omitempty"` + JustifyLastLine bool `json:"justify_last_line"` + ReadingOrder uint64 `json:"reading_order"` + RelativeIndent int `json:"relative_indent"` + ShrinkToFit bool `json:"shrink_to_fit"` + TextRotation int `json:"text_rotation"` + Vertical string `json:"vertical"` + WrapText bool `json:"wrap_text"` + } `json:"alignment"` } -- cgit v1.2.1