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

Method set_sectPr

src/docx/oxml/text/paragraph.py:73–77  ·  view source on GitHub ↗

Unconditionally replace or add `sectPr` as grandchild in correct sequence.

(self, sectPr: CT_SectPr)

Source from the content-addressed store, hash-verified

71 )
72
73 def set_sectPr(self, sectPr: CT_SectPr):
74 """Unconditionally replace or add `sectPr` as grandchild in correct sequence."""
75 pPr = self.get_or_add_pPr()
76 pPr._remove_sectPr()
77 pPr._insert_sectPr(sectPr)
78
79 @property
80 def style(self) -> str | None:

Callers 1

add_section_breakMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected