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

Method clear

src/docx/text/run.py:112–118  ·  view source on GitHub ↗

Return reference to this run after removing all its content. All run formatting is preserved.

(self)

Source from the content-addressed store, hash-verified

110 self.font.bold = value
111
112 def clear(self):
113 """Return reference to this run after removing all its content.
114
115 All run formatting is preserved.
116 """
117 self._r.clear_content()
118 return self
119
120 @property
121 def contains_page_break(self) -> bool:

Callers 6

when_I_clear_the_runFunction · 0.45
popMethod · 0.45
cloneMethod · 0.45
flushMethod · 0.45

Calls 1

clear_contentMethod · 0.45