paper-pptxAPI referenceedit
ReplaceResult
paper-pptx 0.2.0 API reference
Outcome of a text replacement.
Fields:
replacements-- total number of occurrences replaced across the deck.blocks-- POST-edit :class:pptx.inspect.BlockAnchorfor each block that was touched (their content hashes reflect the new text).
ReplaceResult(replacements: int, blocks: Tuple[BlockAnchor, ...] = tuple())Attributes
blocks
attributeblocksTuple[BlockAnchor, ...]= field(default_factory=tuple)replacements
attributereplacementsintFunctions
to_dict
functo_dict() -> dictReturn the replace result as a JSON-ready dict stamped with its schema and version.
Returns
dict