Paper Office
paper-pptxAPI referenceenum.shapes

PP_PLACEHOLDER_TYPE

paper-pptx 0.2.0 API reference

Specifies one of the 18 distinct types of placeholder.

Alias: PP_PLACEHOLDER

Example::

from pptx.enum.shapes import PP_PLACEHOLDER

placeholder = slide.placeholders[0] assert placeholder.type == PP_PLACEHOLDER.TITLE

MS API name: PpPlaceholderType

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

Attributes

BITMAP

attributeBITMAP
= (9, 'clipArt', 'Clip art placeholder')

Clip art placeholder

BODY

attributeBODY
= (2, 'body', 'Body')

Body

CENTER_TITLE

attributeCENTER_TITLE
= (3, 'ctrTitle', 'Center Title')

Center Title

CHART

attributeCHART
= (8, 'chart', 'Chart')

Chart

DATE

attributeDATE
= (16, 'dt', 'Date')

Date

attributeFOOTER
= (15, 'ftr', 'Footer')

Footer

attributeHEADER
= (14, 'hdr', 'Header')

Header

MEDIA_CLIP

attributeMEDIA_CLIP
= (10, 'media', 'Media Clip')

Media Clip

MIXED

attributeMIXED
= (-2, '', 'Return value only; multiple placeholders of differing types.')

Return value only; multiple placeholders of differing types.

OBJECT

attributeOBJECT
= (7, 'obj', 'Object')

Object

ORG_CHART

attributeORG_CHART
= (11, 'dgm', 'SmartArt placeholder. Organization chart is a legacy name.')

SmartArt placeholder. Organization chart is a legacy name.

PICTURE

attributePICTURE
= (18, 'pic', 'Picture')

Picture

SLIDE_IMAGE

attributeSLIDE_IMAGE
= (101, 'sldImg', 'Slide Image')

Slide Image

SLIDE_NUMBER

attributeSLIDE_NUMBER
= (13, 'sldNum', 'Slide Number')

Slide Number

SUBTITLE

attributeSUBTITLE
= (4, 'subTitle', 'Subtitle')

Subtitle

TABLE

attributeTABLE
= (12, 'tbl', 'Table')

Table

TITLE

attributeTITLE
= (1, 'title', 'Title')

Title

VERTICAL_BODY

attributeVERTICAL_BODY
= (6, '', 'Vertical Body (read-only).')

Vertical Body (read-only).

VERTICAL_OBJECT

attributeVERTICAL_OBJECT
= (17, '', 'Vertical Object (read-only).')

Vertical Object (read-only).

VERTICAL_TITLE

attributeVERTICAL_TITLE
= (5, '', 'Vertical Title (read-only).')

Vertical Title (read-only).

xml_value

attributexml_valuestr | None

Functions

from_xml

funcfrom_xml(xml_value: str) -> Self

Enumeration member corresponding to XML attribute value xml_value.

Raises ValueError if xml_value is the empty string ("") or is not an XML attribute value registered on the enumeration. Note that enum members that do not correspond to one of the defined values for an XML attribute have xml_value == "". These "return-value only" members cannot be automatically mapped from an XML attribute value and must be selected explicitly by code, based on the appropriate conditions.

Example::

WD_PARAGRAPH_ALIGNMENT.from_xml("center") WD_PARAGRAPH_ALIGNMENT.CENTER

paramxml_valuestr

Returns

typing_extensions.Self

to_xml

functo_xml(value: int | _T) -> str

XML value of this enum member, generally an XML attribute value.

paramvalueint | _T

Returns

str

validate

funcvalidate(value: _T)

Raise ValueError if value is not an assignable value.

paramvalue_T

On this page