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
attributeelementThe lxml element proxied by this object.
parent
attributeparentThe ancestor proxy object to this one.
For example, the parent of a shape is generally the SlideShapes object that contains it.
part
attributepartXmlPartThe 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__() -> intReturn count of placeholder shapes.
Returns
int