class Axlsx::PageSetUpPr

Page setup properties of the worksheet This class name is not a typo, its spec.

Attributes

auto_page_breaks[R]
fit_to_page[R]

Public Class Methods

new(options = {}) click to toggle source

creates a new page setup properties object @param [Hash] options @option [Boolean] auto_page_breaks Flag indicating whether the sheet displays Automatic Page Breaks. @option [Boolean] fit_to_page Flag indicating whether the Fit to Page print option is enabled.

# File lib/axlsx/workbook/worksheet/page_set_up_pr.rb, line 14
def initialize(options = {})
  parse_options options
end

Public Instance Methods

auto_page_breaks=(value) click to toggle source

Flag indicating whether the sheet displays Automatic Page Breaks. @param [Boolean] value @return [Boolean]

# File lib/axlsx/workbook/worksheet/page_set_up_pr.rb, line 34
def auto_page_breaks=(value)
  Axlsx.validate_boolean value
  @auto_page_breaks = value
end
fit_to_page=(value) click to toggle source

Flag indicating whether the Fit to Page print option is enabled. @param [Boolean] value @return [Boolean]

# File lib/axlsx/workbook/worksheet/page_set_up_pr.rb, line 26
def fit_to_page=(value)
  Axlsx.validate_boolean value
  @fit_to_page = value
end
to_xml_string(str='') click to toggle source

serialize to xml

# File lib/axlsx/workbook/worksheet/page_set_up_pr.rb, line 40
def to_xml_string(str='')
  str << '<pageSetUpPr ' << serialized_attributes << '/>'
end