Class: OoxmlParser::ShapeProperties
- Inherits:
-
Object
- Object
- OoxmlParser::ShapeProperties
- Defined in:
- lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb
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.
8 9 10 11 12 13 14 |
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb', line 8 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.
6 7 8 |
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb', line 6 def anchor_x @anchor_x end |
#anchor_y ⇒ Object
Returns the value of attribute anchor_y.
6 7 8 |
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb', line 6 def anchor_y @anchor_y end |
#fill_color ⇒ Object
Returns the value of attribute fill_color.
6 7 8 |
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb', line 6 def fill_color @fill_color end |
#margins ⇒ Object
Returns the value of attribute margins.
6 7 8 |
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb', line 6 def margins @margins end |
#opacity ⇒ Object
Returns the value of attribute opacity.
6 7 8 |
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb', line 6 def opacity @opacity end |
#position ⇒ Object
Returns the value of attribute position.
6 7 8 |
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb', line 6 def position @position end |
#shadow ⇒ Object
Returns the value of attribute shadow.
6 7 8 |
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb', line 6 def shadow @shadow end |
#size ⇒ Object
Returns the value of attribute size.
6 7 8 |
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb', line 6 def size @size end |
#stroke ⇒ Object
Returns the value of attribute stroke.
6 7 8 |
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb', line 6 def stroke @stroke end |
#z_index ⇒ Object
Returns the value of attribute z_index.
6 7 8 |
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties.rb', line 6 def z_index @z_index end |