MCPcopy Index your code
hub / github.com/python-openxml/python-docx / iter_inner_content

Method iter_inner_content

src/docx/section.py:157–163  ·  view source on GitHub ↗

Generate each Paragraph or Table object in this `section`. Items appear in document order.

(self)

Source from the content-addressed store, hash-verified

155 self._sectPr.header = value
156
157 def iter_inner_content(self) -> Iterator[Paragraph | Table]:
158 """Generate each Paragraph or Table object in this `section`.
159
160 Items appear in document order.
161 """
162 for element in self._sectPr.iter_inner_content():
163 yield (Paragraph(element, self) if isinstance(element, CT_P) else Table(element, self))
164
165 @property
166 def left_margin(self) -> Length | None:

Callers

nothing calls this directly

Calls 2

ParagraphClass · 0.90
TableClass · 0.90

Tested by

no test coverage detected