Merge pull request #156 from dolmen-go/fix/SheetViewOptPtr-is-a-SheetViewOpt

SheetViewOptionPtr: document that it is a superset of SheetViewOption
formula
xuri 7 years ago committed by GitHub
commit 3d231cb549
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,6 +9,7 @@ type SheetViewOption interface {
// SheetViewOptionPtr is a writable SheetViewOption. See GetSheetViewOptions().
type SheetViewOptionPtr interface {
SheetViewOption
getSheetViewOption(view *xlsxSheetView)
}

@ -13,6 +13,12 @@ var _ = []excelize.SheetViewOption{
excelize.ShowFormulas(false),
excelize.ShowGridLines(true),
excelize.ShowRowColHeaders(true),
// SheetViewOptionPtr are also SheetViewOption
new(excelize.DefaultGridColor),
new(excelize.RightToLeft),
new(excelize.ShowFormulas),
new(excelize.ShowGridLines),
new(excelize.ShowRowColHeaders),
}
var _ = []excelize.SheetViewOptionPtr{

Loading…
Cancel
Save