Shape

Overview

Shape is a class in Aspose.Slides for Python. Inherits from: IShape, ISlideComponent, IPresentationComponent.

Represents a shape on a slide.

Properties

NameTypeAccessDescription
raw_frameIShapeFrameReadProvides the underlying IShapeFrame object for low‑level geometry
frameIShapeFrameReadReturns the IShapeFrame that defines the shape’s position and size
line_formatILineFormatReadGives access to the ILineFormat for the shape’s outline
three_d_formatIThreeDFormatReadProvides the IThreeDFormat that controls 3‑D effects on the shape
effect_formatIEffectFormatReadReturns the IEffectFormat for visual effects applied to the shape
fill_formatIFillFormatReadGives the IFillFormat that defines the shape’s fill style
hiddenboolReadIndicates whether the shape is hidden on its slide
z_order_positionintReadReturns the Z‑order index that determines stacking order
connection_site_countintRead
rotationfloatReadGives the rotation angle of the shape in degrees
xfloatReadReturns the X coordinate of the shape’s top‑left corner
yfloatRead
widthfloatReadProvides the width of the shape in points
heightfloatRead
unique_idintRead
office_interop_shape_idintReadStores the Office interop identifier for the shape
alternative_textstrReadContains the accessibility description of the shape
alternative_text_titlestrReadHolds the title for the shape’s alternative text
namestrReadIs the user‑defined name of the shape
is_decorativeboolReadIndicates if the shape is decorative and ignored by assistive tech
is_groupedboolReadReturns true when the shape belongs to a group shape
slideIBaseSlideReadReferences the IBaseSlide that contains this shape
presentationIPresentationReadReferences the IPresentation that owns this shape
as_i_slide_componentISlideComponentRead
as_i_presentation_componentIPresentationComponentReadCasts the shape to the IPresentationComponent interface

Methods

SignatureDescription
__init__()Initialize an empty shape.