diff options
author | Olivier Mengué <dolmen@cpan.org> | 2017-11-05 02:16:41 +0100 |
---|---|---|
committer | Olivier Mengué <dolmen@cpan.org> | 2017-11-16 12:00:36 +0100 |
commit | 88e48e079a91191e05f32a232f8dec4454b25238 (patch) | |
tree | c7d42ad32a89db79be454a4017c64026207dc9b0 /.travis.yml | |
parent | a4ffb4fbfc9048998345e979577dab2a81bf57ff (diff) |
Add SetSheetViewOptions and GetSheetViewOptions (#145)
Two new methods:
- SetSheetViewOptions(sheetName string, viewIndex int, opts ...SheetViewOption) error
- GetSheetViewOptions(sheetName string, viewIndex int, opts ...SheetViewOptionPtr) error
The option values are given by the user through types that have privates methods
that implement the private SheetViewOption and SheetViewOptionPtr interfaces:
- DefaultGridColor(bool)
- RightToLeft(bool)
- ShowFormulas(bool)
- ShowGridLines(bool)
- ShowRowColHeaders(bool)
Examples:
err := xl.SetSheetViewOptions("Sheet1", -1, excelize.ShowGridLines(true))
var showGridLines excelize.ShowGridLines
err := xl.GetSheetViewOptions("Sheet1", -1, &showGridLines)
Fixes #145.
Diffstat (limited to '.travis.yml')
0 files changed, 0 insertions, 0 deletions