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

Method add_paragraph

src/pptx/text/text.py:48–54  ·  view source on GitHub ↗

Return new |_Paragraph| instance appended to the sequence of paragraphs contained in this text frame.

(self)

Source from the content-addressed store, hash-verified

46 self._parent = parent
47
48 def add_paragraph(self):
49 """
50 Return new |_Paragraph| instance appended to the sequence of
51 paragraphs contained in this text frame.
52 """
53 p = self._txBody.add_p()
54 return _Paragraph(p, self)
55
56 @property
57 def auto_size(self) -> MSO_AUTO_SIZE | None:

Callers 1

Calls 1

_ParagraphClass · 0.85

Tested by 1