XlsPrstGeomShape module

class XlsPrstGeomShape.XlsPrstGeomShape

Bases: XlsShape, IPrstGeomShape

Represents a preset geometry shape in an Excel worksheet.

This class provides properties and methods for manipulating preset geometry shapes in Excel, such as rectangles, ovals, arrows, and other standard shapes. It extends XlsShape and implements the IPrstGeomShape interface.

property PrstShapeType: PrstGeomShapeType

Gets the preset geometry shape type.

Returns:

An enumeration value representing the preset geometry shape type.

Return type:

PrstGeomShapeType

property ShapeAdjustValues: GeomertyAdjustValuesCollection

Gets the collection of adjustment values for the preset geometry shape.

Adjustment values allow customization of the shape’s appearance, such as the roundness of corners or the length of arrows.

Returns:

A collection of adjustment values for the shape.

Return type:

GeomertyAdjustValuesCollection

property ShapeType: ExcelShapeType

Gets the shape type of the preset geometry shape.

Returns:

An enumeration value representing the shape type.

Return type:

ExcelShapeType

property Text: str

Gets or sets the text displayed in the preset geometry shape.

Returns:

The text displayed in the shape.

Return type:

str