Paper Office
paper-pptxAPI referenceshapes.shapetree

SlidePlaceholders

paper-pptx 0.2.0 API reference

Collection of placeholder shapes on a slide.

Supports iteration, :func:len, and dictionary-style lookup on the idx value of the placeholders it contains.

Attributes

element

attributeelement

The lxml element proxied by this object.

parent

attributeparent

The ancestor proxy object to this one.

For example, the parent of a shape is generally the SlideShapes object that contains it.

part

attributepartXmlPart

The package part containing this object.

Functions

__getitem__

func__getitem__(idx: int)

Access placeholder shape having idx.

Note that while this looks like list access, idx is actually a dictionary key and will raise KeyError if no placeholder with that idx value is in the collection.

paramidxint

__iter__

func__iter__()

Generate placeholder shapes in idx order.

__len__

func__len__() -> int

Return count of placeholder shapes.

Returns

int

On this page