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
#declared_attributes, included, #serialized_attributes, #serialized_element_attributes, #serialized_tag
Constructor Details
#initialize(options = {}) {|_self| ... } ⇒ WorkbookView
Creates a new BookView object
47 48 49 50 |
# File 'lib/axlsx/workbook/workbook_view.rb', line 47 def initialize( = {}) yield self if block_given? end |
Instance Method Details
#to_xml_string(str = '') ⇒ String
Serialize the WorkbookView
69 70 71 72 73 |
# File 'lib/axlsx/workbook/workbook_view.rb', line 69 def to_xml_string(str = '') str << '<workbookView ' serialized_attributes str str << '></workbookView>' end |