Description

class Axlsx::PatternFill
Note:

The recommended way to manage styles is with Styles#add_style

A PatternFill is the pattern and solid fill styling for a cell.

Creates a new PatternFill Object

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • patternType (Symbol)
  • fgColor (Color)
  • bgColor (Color)

The color to use for the background of the fill when the type is not solid.

The color to use for the the background in solid fills.

Note:

patternType must be one of

:none
:solid
:mediumGray
:darkGray
:lightGray
:darkHorizontal
:darkVertical
:darkDown
:darkUp
:darkGrid
:darkTrellis
:lightHorizontal
:lightVertical
:lightDown
:lightUp
:lightGrid
:lightTrellis
:gray125
:gray0625

The pattern type to use

Serializes the object

Parameters:

  • str (String) (defaults to: '')

PatternFill is referenced in 0 repositories