MCPcopy Create free account
hub / github.com/scanny/python-pptx / text_frame

Method text_frame

src/pptx/chart/chart.py:244–254  ·  view source on GitHub ↗

|TextFrame| instance for this chart title. Return a |TextFrame| instance allowing read/write access to the text of this chart title and its text formatting properties. Accessing this property is destructive in the sense it adds a text frame if one is not present. Use

(self)

Source from the content-addressed store, hash-verified

242
243 @property
244 def text_frame(self):
245 """|TextFrame| instance for this chart title.
246
247 Return a |TextFrame| instance allowing read/write access to the text
248 of this chart title and its text formatting properties. Accessing this
249 property is destructive in the sense it adds a text frame if one is
250 not present. Use :attr:`has_text_frame` to test for the presence of
251 a text frame non-destructively.
252 """
253 rich = self._title.get_or_add_tx_rich()
254 return TextFrame(rich, self)
255
256
257class _Plots(Sequence):

Callers

nothing calls this directly

Calls 2

TextFrameClass · 0.90
get_or_add_tx_richMethod · 0.45

Tested by

no test coverage detected