SlideLayout
paper-pptx 0.2.0 API reference
Slide layout object.
Provides access to placeholders, regular shapes, and slide layout-level properties.
Attributes
background
attributebackground_Background_Background object providing slide background properties.
This property returns a _Background object whether or not the
slide, master, or layout has an explicitly defined background.
The same _Background object is returned on every call for the same
slide object.
element
attributeelementThe lxml element proxied by this object.
header_footers
attributeheader_footersHeaderFootersHeaderFooters flags for this layout (paper-pptx addition).
name
attributenamestrString representing the internal name of this slide.
Returns an empty string ('') if no name is assigned. Assigning an empty string or None
to this property causes any name to be removed.
part
attributepartSlideLayoutPartplaceholders
attributeplaceholdersLayoutPlaceholdersSequence of placeholder shapes in this slide layout.
Placeholders appear in idx order.
shapes
attributeshapesLayoutShapesSequence of shapes appearing on this slide layout.
slide_master
attributeslide_masterSlideMasterSlide master from which this slide-layout inherits properties.
used_by_slides
attributeused_by_slidesTuple of slide objects based on this slide layout.
Functions
iter_cloneable_placeholders
funciter_cloneable_placeholders() -> Iterator[LayoutPlaceholder]Generate layout-placeholders on this slide-layout that should be cloned to a new slide.
Used when creating a new slide from this slide-layout.
Returns
typing.Iterator[pptx.shapes.placeholder.LayoutPlaceholder]