options

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	HorizontalCentered bool
	VerticalCentered   bool
	Headings           bool
	GridLines          bool
	GridLinesSet       *bool
}

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

func New

func New(settings ...Option) *Info

New create and returns option set for sheet

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 sheet

func GridLines

func GridLines(gridLines bool) Option

GridLines sets a flag indicating that grid lines are printed, if both gridLines and gridLinesSet are true.

func GridLinesSet

func GridLinesSet(gridLinesSet bool) Option

GridLinesSet sets a flag indicating that grid lines are printed, if both gridLines and gridLinesSet are true.

func Headings

func Headings(headings bool) Option

Headings sets a flag indicating that row and column headings are printed.

func HorizontalCentered

func HorizontalCentered(horizontalCentered bool) Option

HorizontalCentered sets a flag to indicate horizontal center alignment of the page when printed.

func VerticalCentered

func VerticalCentered(verticalCentered bool) Option

VerticalCentered sets a flag to indicate vertical center alignment of the page when printed.

Jump to

Keyboard shortcuts

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