class Axlsx::PrintOptions

The recommended way to manage print options is via Worksheet#print_options

Options for printing a worksheet. All options are boolean and false by default.

Creates a new PrintOptions object


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

    a customizable set of options

Options Hash (options):

  • grid_lines (Boolean)

    Whether grid lines should be printed

  • headings (Boolean)

    Whether row and column headings should be printed

  • horizontal_centered (Boolean)

    Whether the content should be centered horizontally

  • vertical_centered (Boolean)

    Whether the content should be centered vertically

Set some or all options at once.


  • options (Hash)

    The options to set (possible keys are :grid_lines, :headings, :horizontal_centered, and :vertical_centered).


As all attributes default to “false” according to the xml schema definition, the generated xml includes only those attributes that are set to true.

Serializes the page options element.


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

PrintOptions is referenced in 0 repositories