class Axlsx::CellStyle

Using Styles#add_style is the recommended way to manage cell styling.

CellStyle defines named styles that reference defined formatting records and can be used in your worksheet.

Creats a new CellStyle object


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

    a customizable set of options

Options Hash (options):

  • name (String)
  • xfId (Integer)
  • buildinId (Integer)
  • iLevel (Integer)
  • hidden (Boolean)
  • customBuiltIn (Boolean)

The buildinId to use when this named style is applied

Indicates that the build in style reference has been customized.

Determines if this named style should show in the list of styles when using excel

Determines if this formatting is for an outline style, and what level of the outline it is to be applied to.

The name of this cell style

Serializes the object


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

The formatting record id this named style utilizes

CellStyle is referenced in 0 repositories