options

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 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
	Height       float32
}

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

func New

func New(settings ...Option) *Info

New create and returns option set for row

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 row

func Collapsed

func Collapsed(collapsed bool) Option

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

func Height

func Height(height float32) Option

Height sets the row height in point size. There is no margin padding on row height.

func Hidden

func Hidden(hidden bool) Option

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

func OutlineLevel

func OutlineLevel(level uint8) Option

OutlineLevel set outlining level of the row, when outlining is on.

func Phonetic

func Phonetic(phonetic bool) Option

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

Jump to

Keyboard shortcuts

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