Class: Axlsx::WorkbookView
- Inherits:
-
Object
- Object
- Axlsx::WorkbookView
- Includes:
- Accessors, OptionsParser, SerializedAttributes
- Defined in:
- lib/axlsx/workbook/workbook_view.rb
Overview
A BookView defines the display properties for a workbook. Units for window widths and other dimensions are expressed in twips. Twip measurements are portable between different display resolutions. The formula is (screen pixels) * (20 * 72) / (logical device dpi), where the logical device dpi can be different for x and y coordinates.
Instance Method Summary collapse
-
#initialize(options = {}) {|_self| ... } ⇒ WorkbookView
constructor
Creates a new BookView object.
-
#to_xml_string(str = +'')) ⇒ String
Serialize the WorkbookView.
Methods included from OptionsParser
Methods included from SerializedAttributes
included, #serialized_attributes, #serialized_element_attributes, #serialized_tag
Constructor Details
#initialize(options = {}) {|_self| ... } ⇒ WorkbookView
Creates a new BookView object
49 50 51 52 |
# File 'lib/axlsx/workbook/workbook_view.rb', line 49 def initialize( = {}) yield self if block_given? end |
Instance Method Details
#to_xml_string(str = +'')) ⇒ String
Serialize the WorkbookView
71 72 73 74 75 |
# File 'lib/axlsx/workbook/workbook_view.rb', line 71 def to_xml_string(str = +'') str << '<workbookView ' serialized_attributes str str << '></workbookView>' end |