options

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2019 License: MIT Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	OutlineLevel uint8
	Collapsed    bool
	Phonetic     bool
	Hidden       bool
	Width        float32
}

Info hold advanced settings of column. N.B.: You should NOT mutate any value directly.

func New

func New(settings ...Option) *Info

New create and returns option set for column

func (*Info) Set

func (i *Info) Set(settings ...Option)

Set sets new options for option set

type Option

type Option func(co *Info)

Option is helper type to set options for comment

func Collapsed

func Collapsed(collapsed bool) Option

Collapsed sets flag indicating if the outlining of the affected column is in the collapsed state.

func Hidden

func Hidden(hidden bool) Option

Hidden sets flag indicating if the affected column are hidden on this worksheet.

func OutlineLevel

func OutlineLevel(level uint8) Option

OutlineLevel sets outline level of affected column. Range is 0 to 7.

func Phonetic

func Phonetic(phonetic bool) Option

Phonetic sets flag indicating if the phonetic information should be displayed by default for the affected column of the worksheet.

func Width

func Width(width float32) Option

Width sets the column width in the same units used by Excel which is: the number of characters in the default font. For more details: https://support.microsoft.com/en-us/kb/214123

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL