From 90221bd98fab0ce85a177d955d79a964bb4b66b2 Mon Sep 17 00:00:00 2001 From: xuri Date: Tue, 18 Dec 2018 21:50:07 +0800 Subject: Fixes #310, support set and get TopLeftCell properties of sheet view options --- sheetview.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sheetview.go') 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)) } -- cgit v1.2.1