Class: Axlsx::SheetFormatPr
- Inherits:
-
Object
- Object
- Axlsx::SheetFormatPr
- Includes:
- Accessors, OptionsParser, SerializedAttributes
- Defined in:
- lib/axlsx/workbook/worksheet/sheet_format_pr.rb
Overview
Sheet formatting properties <xsd:complexType name="CT_SheetFormatPr"> <xsd:attribute name="baseColWidth" type="xsd:unsignedInt" use="optional" default="8"/> <xsd:attribute name="defaultColWidth" type="xsd:double" use="optional"/> <xsd:attribute name="defaultRowHeight" type="xsd:double" use="required"/> <xsd:attribute name="customHeight" type="xsd:boolean" use="optional" default="false"/> <xsd:attribute name="zeroHeight" type="xsd:boolean" use="optional" default="false"/> <xsd:attribute name="thickTop" type="xsd:boolean" use="optional" default="false"/> <xsd:attribute name="thickBottom" type="xsd:boolean" use="optional" default="false"/> <xsd:attribute name="outlineLevelRow" type="xsd:unsignedByte" use="optional" default="0"/> <xsd:attribute name="outlineLevelCol" type="xsd:unsignedByte" use="optional" default="0"/> </xsd:complexType>
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ SheetFormatPr
constructor
creates a new sheet_format_pr object.
-
#to_xml_string(str = '') ⇒ String
serializes this object to an xml string.
Methods included from OptionsParser
Methods included from SerializedAttributes
#declared_attributes, included, #serialized_attributes, #serialized_element_attributes, #serialized_tag
Constructor Details
#initialize(options = {}) ⇒ SheetFormatPr
creates a new sheet_format_pr object
32 33 34 35 |
# File 'lib/axlsx/workbook/worksheet/sheet_format_pr.rb', line 32 def initialize(={}) set_defaults end |
Instance Method Details
#to_xml_string(str = '') ⇒ String
serializes this object to an xml string
50 51 52 |
# File 'lib/axlsx/workbook/worksheet/sheet_format_pr.rb', line 50 def to_xml_string(str='') str << "<sheetFormatPr #{serialized_attributes}/>" end |