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

Class CT_TextField

src/pptx/oxml/text.py:339–357  ·  view source on GitHub ↗

`a:fld` field element, for either a slide number or date field.

Source from the content-addressed store, hash-verified

337
338
339class CT_TextField(BaseOxmlElement):
340 """`a:fld` field element, for either a slide number or date field."""
341
342 get_or_add_rPr: Callable[[], CT_TextCharacterProperties]
343
344 rPr: CT_TextCharacterProperties | None = ZeroOrOne( # pyright: ignore[reportAssignmentType]
345 "a:rPr", successors=("a:pPr", "a:t")
346 )
347 t: BaseOxmlElement | None = ZeroOrOne( # pyright: ignore[reportAssignmentType]
348 "a:t", successors=()
349 )
350
351 @property
352 def text(self) -> str: # pyright: ignore[reportIncompatibleMethodOverride]
353 """The text of the `a:t` child element."""
354 t = self.t
355 if t is None:
356 return ""
357 return t.text or ""
358
359
360class CT_TextFont(BaseOxmlElement):

Callers

nothing calls this directly

Calls 1

ZeroOrOneClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…