MCPcopy Create free account
hub / github.com/scanny/python-pptx / clear

Method clear

src/pptx/text/text.py:497–504  ·  view source on GitHub ↗

Remove all content from this paragraph. Paragraph properties are preserved. Content includes runs, line breaks, and fields.

(self)

Source from the content-addressed store, hash-verified

495 self._pPr.algn = value
496
497 def clear(self):
498 """Remove all content from this paragraph.
499
500 Paragraph properties are preserved. Content includes runs, line breaks, and fields.
501 """
502 for elm in self._element.content_children:
503 self._element.remove(elm)
504 return self
505
506 @property
507 def font(self) -> Font:

Callers 1

textMethod · 0.95

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected