Class: OoxmlParser::ShapeProperties

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_xObject

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_yObject

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_colorObject

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

#marginsObject

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

#opacityObject

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

#positionObject

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

#shadowObject

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

#sizeObject

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

#strokeObject

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_indexObject

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