summaryrefslogtreecommitdiff
path: root/sheetview.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2018-12-18 21:50:07 +0800
committerxuri <xuri.me@gmail.com>2018-12-18 21:50:07 +0800
commit90221bd98fab0ce85a177d955d79a964bb4b66b2 (patch)
tree865aabb855b48384df8f6277aa11ad7b2e1c3c77 /sheetview.go
parentd166d2e06fd7faf116a5d8ef9ec035a5a05799c5 (diff)
Fixes #310, support set and get TopLeftCell properties of sheet view options
Diffstat (limited to 'sheetview.go')
-rw-r--r--sheetview.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/sheetview.go b/sheetview.go
index e76325c..37a0c39 100644
--- a/sheetview.go
+++ b/sheetview.go
@@ -35,6 +35,8 @@ type (
ShowRowColHeaders bool
// ZoomScale is a SheetViewOption.
ZoomScale float64
+ // TopLeftCell is a SheetViewOption.
+ TopLeftCell string
/* TODO
// ShowWhiteSpace is a SheetViewOption.
ShowWhiteSpace bool
@@ -47,6 +49,14 @@ type (
// Defaults for each option are described in XML schema for CT_SheetView
+func (o TopLeftCell) setSheetViewOption(view *xlsxSheetView) {
+ view.TopLeftCell = string(o)
+}
+
+func (o *TopLeftCell) getSheetViewOption(view *xlsxSheetView) {
+ *o = TopLeftCell(string(view.TopLeftCell))
+}
+
func (o DefaultGridColor) setSheetViewOption(view *xlsxSheetView) {
view.DefaultGridColor = boolPtr(bool(o))
}