Shape
Overview
Shape is a class in Aspose.Slides for Python.
Inherits from: IShape, ISlideComponent, IPresentationComponent.
Represents a shape on a slide.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
raw_frame | IShapeFrame | Read | Provides the underlying IShapeFrame object for low‑level geometry |
frame | IShapeFrame | Read | Returns the IShapeFrame that defines the shape’s position and size |
line_format | ILineFormat | Read | Gives access to the ILineFormat for the shape’s outline |
three_d_format | IThreeDFormat | Read | Provides the IThreeDFormat that controls 3‑D effects on the shape |
effect_format | IEffectFormat | Read | Returns the IEffectFormat for visual effects applied to the shape |
fill_format | IFillFormat | Read | Gives the IFillFormat that defines the shape’s fill style |
hidden | bool | Read | Indicates whether the shape is hidden on its slide |
z_order_position | int | Read | Returns the Z‑order index that determines stacking order |
connection_site_count | int | Read | |
rotation | float | Read | Gives the rotation angle of the shape in degrees |
x | float | Read | Returns the X coordinate of the shape’s top‑left corner |
y | float | Read | |
width | float | Read | Provides the width of the shape in points |
height | float | Read | |
unique_id | int | Read | |
office_interop_shape_id | int | Read | Stores the Office interop identifier for the shape |
alternative_text | str | Read | Contains the accessibility description of the shape |
alternative_text_title | str | Read | Holds the title for the shape’s alternative text |
name | str | Read | Is the user‑defined name of the shape |
is_decorative | bool | Read | Indicates if the shape is decorative and ignored by assistive tech |
is_grouped | bool | Read | Returns true when the shape belongs to a group shape |
slide | IBaseSlide | Read | References the IBaseSlide that contains this shape |
presentation | IPresentation | Read | References the IPresentation that owns this shape |
as_i_slide_component | ISlideComponent | Read | |
as_i_presentation_component | IPresentationComponent | Read | Casts the shape to the IPresentationComponent interface |
Methods
| Signature | Description |
|---|---|
__init__() | Initialize an empty shape. |