Paper Office
paper-pptxAPI referenceenum.shapes

MSO_SHAPE_TYPE

paper-pptx 0.2.0 API reference

Specifies the type of a shape, more specifically than the five base types.

Alias: MSO

Example::

from pptx.enum.shapes import MSO_SHAPE_TYPE

assert shape.type == MSO_SHAPE_TYPE.PICTURE

MS API Name: MsoShapeType

http://msdn.microsoft.com/en-us/library/office/ff860759(v=office.15).aspx

Attributes

AUTO_SHAPE

attributeAUTO_SHAPE
= (1, 'AutoShape')

AutoShape

CALLOUT

attributeCALLOUT
= (2, 'Callout shape')

Callout shape

CANVAS

attributeCANVAS
= (20, 'Drawing canvas')

Drawing canvas

CHART

attributeCHART
= (3, 'Chart, e.g. pie chart, bar chart')

Chart, e.g. pie chart, bar chart

COMMENT

attributeCOMMENT
= (4, 'Comment')

Comment

DIAGRAM

attributeDIAGRAM
= (21, 'Diagram')

Diagram

EMBEDDED_OLE_OBJECT

attributeEMBEDDED_OLE_OBJECT
= (7, 'Embedded OLE object')

Embedded OLE object

FORM_CONTROL

attributeFORM_CONTROL
= (8, 'Form control')

Form control

FREEFORM

attributeFREEFORM
= (5, 'Freeform')

Freeform

GROUP

attributeGROUP
= (6, 'Group shape')

Group shape

IGX_GRAPHIC

attributeIGX_GRAPHIC
= (24, 'SmartArt graphic')

SmartArt graphic

INK

attributeINK
= (22, 'Ink')

Ink

INK_COMMENT

attributeINK_COMMENT
= (23, 'Ink Comment')

Ink Comment

LINE

attributeLINE
= (9, 'Line')

Line

LINKED_OLE_OBJECT

attributeLINKED_OLE_OBJECT
= (10, 'Linked OLE object')

Linked OLE object

LINKED_PICTURE

attributeLINKED_PICTURE
= (11, 'Linked picture')

Linked picture

MEDIA

attributeMEDIA
= (16, 'Media')

Media

MIXED

attributeMIXED
= (-2, 'Multiple shape types (read-only).')

Multiple shape types (read-only).

OLE_CONTROL_OBJECT

attributeOLE_CONTROL_OBJECT
= (12, 'OLE control object')

OLE control object

PICTURE

attributePICTURE
= (13, 'Picture')

Picture

PLACEHOLDER

attributePLACEHOLDER
= (14, 'Placeholder')

Placeholder

SCRIPT_ANCHOR

attributeSCRIPT_ANCHOR
= (18, 'Script anchor')

Script anchor

TABLE

attributeTABLE
= (19, 'Table')

Table

TEXT_BOX

attributeTEXT_BOX
= (17, 'Text box')

Text box

TEXT_EFFECT

attributeTEXT_EFFECT
= (15, 'Text effect')

Text effect

WEB_VIDEO

attributeWEB_VIDEO
= (26, 'Web video')

Web video

On this page