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 = '') ⇒ Object
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
50 51 52 53 |
# File 'lib/axlsx/workbook/workbook_view.rb', line 50 def initialize(={}) yield self if block_given? end |
Instance Method Details
#to_xml_string(str = '') ⇒ Object
72 73 74 75 76 |
# File 'lib/axlsx/workbook/workbook_view.rb', line 72 def to_xml_string(str = '') str << '<workbookView ' serialized_attributes str str << '></workbookView>' end |