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

Method text_frame

src/pptx/chart/axis.py:282–291  ·  view source on GitHub ↗

|TextFrame| instance for this axis title. Return a |TextFrame| instance allowing read/write access to the text of this axis title and its text formatting properties. Accessing this property is destructive as it adds a new text frame if not already present.

(self)

Source from the content-addressed store, hash-verified

280
281 @property
282 def text_frame(self):
283 """|TextFrame| instance for this axis title.
284
285 Return a |TextFrame| instance allowing read/write access to the text
286 of this axis title and its text formatting properties. Accessing this
287 property is destructive as it adds a new text frame if not already
288 present.
289 """
290 rich = self._title.get_or_add_tx_rich()
291 return TextFrame(rich, self)
292
293
294class CategoryAxis(_BaseAxis):

Callers

nothing calls this directly

Calls 2

TextFrameClass · 0.90
get_or_add_tx_richMethod · 0.45

Tested by

no test coverage detected