Paper Office
paper-pptxAPI referenceoxml.xmlchemy

OptionalAttribute

paper-pptx 0.2.0 API reference

Defines an optional attribute on a custom element class.

An optional attribute returns a default value when not present for reading. When assigned None, the attribute is removed.

OptionalAttribute(attr_name: str, simple_type: type[AttributeType], default: Any = None)

Functions

populate_class_members

funcpopulate_class_members(element_cls: Type[BaseOxmlElement], prop_name: str)

Add the appropriate methods to element_cls.

paramelement_clsType[BaseOxmlElement]
paramprop_namestr

On this page