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

Method add_footerReference

src/docx/oxml/section.py:150–158  ·  view source on GitHub ↗

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

(self, type_: WD_HEADER_FOOTER, rId: str)

Source from the content-addressed store, hash-verified

148 del _tag_seq
149
150 def add_footerReference(self, type_: WD_HEADER_FOOTER, rId: str) -> CT_HdrFtrRef:
151 """Return newly added CT_HdrFtrRef element of `type_` with `rId`.
152
153 The element tag is `w:footerReference`.
154 """
155 footerReference = self._add_footerReference()
156 footerReference.type_ = type_
157 footerReference.rId = rId
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`.

Callers 1

_add_definitionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected