Class: OoxmlParser::ShapeProperties
- Inherits:
-
Object
- Object
- OoxmlParser::ShapeProperties
- Defined in:
- lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb
Overview
Class for working with Shape Properties
Instance Attribute Summary collapse
-
#anchor_x ⇒ Object
Returns the value of attribute anchor_x.
-
#anchor_y ⇒ Object
Returns the value of attribute anchor_y.
-
#fill_color ⇒ Object
Returns the value of attribute fill_color.
-
#margins ⇒ Object
Returns the value of attribute margins.
-
#opacity ⇒ Object
Returns the value of attribute opacity.
-
#position ⇒ Object
Returns the value of attribute position.
-
#shadow ⇒ Object
Returns the value of attribute shadow.
-
#size ⇒ Object
Returns the value of attribute size.
-
#stroke ⇒ Object
Returns the value of attribute stroke.
-
#z_index ⇒ Object
Returns the value of attribute z_index.
Instance Method Summary collapse
-
#initialize(position = nil, margins = ShapeMargins.new, size = ShapeSize.new, z_index = nil, stroke = Stroke.new) ⇒ ShapeProperties
constructor
A new instance of ShapeProperties.
Constructor Details
#initialize(position = nil, margins = ShapeMargins.new, size = ShapeSize.new, z_index = nil, stroke = Stroke.new) ⇒ ShapeProperties
Returns a new instance of ShapeProperties.
11 12 13 14 15 16 17 |
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb', line 11 def initialize(position = nil, margins = ShapeMargins.new, size = ShapeSize.new, z_index = nil, stroke = Stroke.new) @position = position @margins = margins @size = size @z_index = z_index @stroke = stroke end |
Instance Attribute Details
#anchor_x ⇒ Object
Returns the value of attribute anchor_x.
9 10 11 |
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb', line 9 def anchor_x @anchor_x end |
#anchor_y ⇒ Object
Returns the value of attribute anchor_y.
9 10 11 |
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb', line 9 def anchor_y @anchor_y end |
#fill_color ⇒ Object
Returns the value of attribute fill_color.
9 10 11 |
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb', line 9 def fill_color @fill_color end |
#margins ⇒ Object
Returns the value of attribute margins.
9 10 11 |
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb', line 9 def margins @margins end |
#opacity ⇒ Object
Returns the value of attribute opacity.
9 10 11 |
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb', line 9 def opacity @opacity end |
#position ⇒ Object
Returns the value of attribute position.
9 10 11 |
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb', line 9 def position @position end |
#shadow ⇒ Object
Returns the value of attribute shadow.
9 10 11 |
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb', line 9 def shadow @shadow end |
#size ⇒ Object
Returns the value of attribute size.
9 10 11 |
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb', line 9 def size @size end |
#stroke ⇒ Object
Returns the value of attribute stroke.
9 10 11 |
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb', line 9 def stroke @stroke end |
#z_index ⇒ Object
Returns the value of attribute z_index.
9 10 11 |
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb', line 9 def z_index @z_index end |