IGeometryShape class

IGeometryShape class

Represents the parent class for all geometric shapes.

The IGeometryShape type exposes the following members:

Properties

PropertyDescription
shape_styleReturns shape’s style object.
Read-only IShapeStyle.
shape_typeReturns or sets the geometry preset type.
Note: on value changing all adjustment values will reset to their default values.
Read/write ShapeType.
adjustmentsReturns a collection of shape’s adjustment values.
Read-only IAdjustValueCollection.
is_text_holder
placeholder
custom_data
raw_frame
frame
line_format
three_d_format
effect_format
fill_format
hidden
z_order_position
connection_site_count
rotation
x
y
width
height
alternative_text
alternative_text_title
name
is_decorative
shape_lock
unique_id
office_interop_shape_id
is_grouped
black_white_mode
parent_group
slide
presentation
hyperlink_click
hyperlink_mouse_over
hyperlink_manager

Methods

MethodDescription
get_image(self)
get_image(self, bounds, scale_x, scale_y)
write_as_svg(self, stream)
write_as_svg(self, stream, svg_options)
get_geometry_paths(self)Returns the copy of path of the geometry shape. Coordinates are relative to the left top corner of the shape.
set_geometry_path(self, geometry_path)Updates shape geometry from IGeometryPath object. Coordinates must be relative to the left
top corner of the shape.
Changes the type of the shape (IGeometryShape.shape_type) to ShapeType.CUSTOM.
set_geometry_paths(self, geometry_paths)Updates shape geometry from array of IGeometryPath. Coordinates must be relative to the left
top corner of the shape.
Changes the type of the shape (IGeometryShape.shape_type) to ShapeType.CUSTOM.
create_shape_elements(self)Creates and returns array of shape’s elements.
add_placeholder(self, placeholder_to_copy_from)
remove_placeholder(self)
get_base_placeholder(self)

See Also