ShapeObject module

class ShapeObject.ShapeObject

Bases: Shape, IDocumentObject

Represents a shape object in a document.

property CharacterFormat: CharacterFormat

Gets the character format of the shape object. :return: The character format of the shape object.

property Chart: Chart

Gets the chart object associated with this shape. :return: The chart object associated with this shape.

property ChildObjects: DocumentObjectCollection

Gets the child objects of the shape object. :return: The child objects of the shape object.

property DocumentObjectType: DocumentObjectType

Gets the type of the document object. :return: The type of the document object.

property ExtrusionEnabled: bool

Gets a value indicating whether extrusion is enabled for the shape object. :return: True if extrusion is enabled for the shape object; otherwise, False.

property FillColor: Color

Gets the fill color of the shape object. :return: The fill color of the shape object.

FillTransparency(value: float)

Sets the fill transparency of the shape object. :param value: The fill transparency to set.

property LineDashing: LineDashing

Gets the line dashing of the shape object. :return: The line dashing of the shape object.

property LineStyle: ShapeLineStyle

Gets the line style of the shape object. :return: The line style of the shape object.

property ShadowEnabled: bool

Gets a value indicating whether shadow is enabled for the shape object. :return: True if shadow is enabled for the shape object; otherwise, False.

property StrokeColor: Color

Gets the stroke color of the shape object. :return: The stroke color of the shape object.

property StrokeWeight: float

Gets the stroke weight of the shape object. :return: The stroke weight of the shape object.

property WordArt: WordArt

Gets the word art associated with this shape. :return: The word art associated with this shape.