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

Method _add_definition

src/docx/section.py:446–450  ·  view source on GitHub ↗

Return newly-added header part.

(self)

Source from the content-addressed store, hash-verified

444 """
445
446 def _add_definition(self):
447 """Return newly-added header part."""
448 header_part, rId = self._document_part.add_header_part()
449 self._sectPr.add_headerReference(self._hdrftr_index, rId)
450 return header_part
451
452 @property
453 def _definition(self):

Callers

nothing calls this directly

Calls 2

add_header_partMethod · 0.80
add_headerReferenceMethod · 0.80

Tested by

no test coverage detected