add_math_shape method

add_math_shape

Creates a new rectangle auto shape to host mathematical content and adds it to the end of the shape collection.

Returns

The newly created IAutoShape.

def add_math_shape(self, x, y, width, height):
    ...
ParameterTypeDescription
xfloatThe x-coordinate of the shape’s frame, in points.
yfloatThe y-coordinate of the shape’s frame, in points.
widthfloatThe width of the shape’s frame, in points.
heightfloatThe height of the shape’s frame, in points.

Examples

The following example shows how to add Mathematical Equation in PowerPoint Presentation.

See Also