Class: Axlsx::PageSetUpPr
- Inherits:
-
Object
- Object
- Axlsx::PageSetUpPr
- Includes:
- OptionsParser, SerializedAttributes
- Defined in:
- lib/axlsx/workbook/worksheet/page_set_up_pr.rb
Overview
Page setup properties of the worksheet This class name is not a typo, its spec.
Instance Attribute Summary collapse
-
#auto_page_breaks ⇒ Object
Returns the value of attribute auto_page_breaks.
-
#fit_to_page ⇒ Object
Returns the value of attribute fit_to_page.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ PageSetUpPr
constructor
creates a new page setup properties object.
-
#to_xml_string(str = +'')) ⇒ Object
serialize to xml.
Methods included from SerializedAttributes
included, #serialized_attributes, #serialized_element_attributes, #serialized_tag
Methods included from OptionsParser
Constructor Details
#initialize(options = {}) ⇒ PageSetUpPr
creates a new page setup properties object
14 15 16 |
# File 'lib/axlsx/workbook/worksheet/page_set_up_pr.rb', line 14 def initialize( = {}) end |
Instance Attribute Details
#auto_page_breaks ⇒ Object
Returns the value of attribute auto_page_breaks.
20 21 22 |
# File 'lib/axlsx/workbook/worksheet/page_set_up_pr.rb', line 20 def auto_page_breaks @auto_page_breaks end |
#fit_to_page ⇒ Object
Returns the value of attribute fit_to_page.
20 21 22 |
# File 'lib/axlsx/workbook/worksheet/page_set_up_pr.rb', line 20 def fit_to_page @fit_to_page end |
Instance Method Details
#to_xml_string(str = +'')) ⇒ Object
serialize to xml
39 40 41 42 43 |
# File 'lib/axlsx/workbook/worksheet/page_set_up_pr.rb', line 39 def to_xml_string(str = +'') str << '<pageSetUpPr ' serialized_attributes(str) str << '/>' end |