Paper Office
paper-pptxAPI referenceslide

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

attributeelement

The lxml element proxied by this object.

header_footers

attributeheader_footersHeaderFooters

HeaderFooters flags for this layout (paper-pptx addition).

name

attributenamestr

String 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

attributepartSlideLayoutPart

placeholders

attributeplaceholdersLayoutPlaceholders

Sequence of placeholder shapes in this slide layout.

Placeholders appear in idx order.

shapes

attributeshapesLayoutShapes

Sequence of shapes appearing on this slide layout.

slide_master

attributeslide_masterSlideMaster

Slide master from which this slide-layout inherits properties.

used_by_slides

attributeused_by_slides

Tuple 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]

On this page