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

Method add_headerReference

src/docx/oxml/section.py:160–168  ·  view source on GitHub ↗

Return newly added CT_HdrFtrRef element of `type_` with `rId`. The element tag is `w:headerReference`.

(self, type_: WD_HEADER_FOOTER, rId: str)

Source from the content-addressed store, hash-verified

158 return footerReference
159
160 def add_headerReference(self, type_: WD_HEADER_FOOTER, rId: str) -> CT_HdrFtrRef:
161 """Return newly added CT_HdrFtrRef element of `type_` with `rId`.
162
163 The element tag is `w:headerReference`.
164 """
165 headerReference = self._add_headerReference()
166 headerReference.type_ = type_
167 headerReference.rId = rId
168 return headerReference
169
170 @property
171 def bottom_margin(self) -> Length | None:

Callers 1

_add_definitionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected