Enumeration Types
Enumeration classes used throughout python-pptx for specifying various properties and settings.Action Enumerations
PP_ACTION_TYPE
Specifies the type of a mouse action (click or hover). Alias:PP_ACTION
Import:
No action is performed.
Moves to the next slide.
Moves to the previous slide.
Returns to the first slide.
Moves to the last slide.
Moves to the last slide viewed.
Slide show ends.
Hyperlink to a URL.
Runs a macro.
Runs a program.
Runs the slideshow.
OLE Verb action.
Begins the slideshow.
Moves to slide specified by slide number.
Opens the specified file.
Shape Enumerations
MSO_SHAPE_TYPE
Specifies the type of a shape. Alias:MSO
Import:
AutoShape
Chart (pie chart, bar chart, etc.)
Group shape
Line
Picture
Placeholder
Table
Text box
PP_PLACEHOLDER_TYPE
Specifies one of the 18 distinct types of placeholder. Alias:PP_PLACEHOLDER
Import:
Title placeholder
Body text placeholder
Center title placeholder
Subtitle placeholder
Chart placeholder
Table placeholder
Picture placeholder
Date placeholder
Footer placeholder
Slide number placeholder
MSO_AUTO_SHAPE_TYPE
Specifies a type of AutoShape. Alias:MSO_SHAPE
Import:
MSO_SHAPE.RECTANGLE- RectangleMSO_SHAPE.ROUNDED_RECTANGLE- Rounded rectangleMSO_SHAPE.OVAL- Oval/EllipseMSO_SHAPE.DIAMOND- DiamondMSO_SHAPE.RIGHT_ARROW- Block arrow pointing rightMSO_SHAPE.DOWN_ARROW- Block arrow pointing down
Text Enumerations
MSO_AUTO_SIZE
Determines the type of automatic sizing for text frames. Import:No automatic sizing. Text can extend beyond shape bounds.
Shape height (and possibly width) adjusts to fit text.
Font size is reduced as necessary to fit text within shape.
PP_PARAGRAPH_ALIGNMENT
Specifies horizontal alignment for paragraphs. Alias:PP_ALIGN
Import:
Left aligned
Center aligned
Right aligned
Justified (both left and right margins)
MSO_VERTICAL_ANCHOR
Specifies vertical alignment of text in a text frame. Alias:MSO_ANCHOR
Values:
Aligns text to top of text frame
Centers text vertically
Aligns text to bottom of text frame
Drawing/Fill Enumerations
MSO_FILL_TYPE
Specifies the fill type for a shape. Alias:MSO_FILL
Import:
Shape is filled with a solid color
Shape is filled with a pattern
Shape is filled with a gradient
Shape is filled with a texture
Shape is transparent, showing whatever is behind it
Shape is filled with a bitmap image
MSO_THEME_COLOR_INDEX
Specifies an Office theme color. Alias:MSO_THEME_COLOR
Import:
Accent 1 theme color
Accent 2 theme color
Dark 1 theme color
Light 1 theme color
Chart Enumerations
XL_CHART_TYPE
Specifies the type of a chart. Import:Clustered bar chart
Clustered column chart
Line chart
Pie chart
Area chart
XL_LEGEND_POSITION
Specifies the position of the legend on a chart. Import:Below the chart
Left of the chart
Right of the chart
Above the chart