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

Class CT_TextCharacterProperties

src/pptx/oxml/text.py:263–336  ·  view source on GitHub ↗

Custom element class for `a:rPr`, `a:defRPr`, and `a:endParaRPr`. 'rPr' is short for 'run properties', and it corresponds to the |Font| proxy class.

Source from the content-addressed store, hash-verified

261
262
263class CT_TextCharacterProperties(BaseOxmlElement):
264 """Custom element class for `a:rPr`, `a:defRPr`, and `a:endParaRPr`.
265
266 'rPr' is short for 'run properties', and it corresponds to the |Font| proxy class.
267 """
268
269 get_or_add_hlinkClick: Callable[[], CT_Hyperlink]
270 get_or_add_latin: Callable[[], CT_TextFont]
271 _remove_latin: Callable[[], None]
272 _remove_hlinkClick: Callable[[], None]
273
274 eg_fillProperties = ZeroOrOneChoice(
275 (
276 Choice("a:noFill"),
277 Choice("a:solidFill"),
278 Choice("a:gradFill"),
279 Choice("a:blipFill"),
280 Choice("a:pattFill"),
281 Choice("a:grpFill"),
282 ),
283 successors=(
284 "a:effectLst",
285 "a:effectDag",
286 "a:highlight",
287 "a:uLnTx",
288 "a:uLn",
289 "a:uFillTx",
290 "a:uFill",
291 "a:latin",
292 "a:ea",
293 "a:cs",
294 "a:sym",
295 "a:hlinkClick",
296 "a:hlinkMouseOver",
297 "a:rtl",
298 "a:extLst",
299 ),
300 )
301 latin: CT_TextFont | None = ZeroOrOne( # pyright: ignore[reportAssignmentType]
302 "a:latin",
303 successors=(
304 "a:ea",
305 "a:cs",
306 "a:sym",
307 "a:hlinkClick",
308 "a:hlinkMouseOver",
309 "a:rtl",
310 "a:extLst",
311 ),
312 )
313 hlinkClick: CT_Hyperlink | None = ZeroOrOne( # pyright: ignore[reportAssignmentType]
314 "a:hlinkClick", successors=("a:hlinkMouseOver", "a:rtl", "a:extLst")
315 )
316
317 lang: MSO_LANGUAGE_ID | None = OptionalAttribute( # pyright: ignore[reportAssignmentType]
318 "lang", MSO_LANGUAGE_ID
319 )
320 sz: int | None = OptionalAttribute( # pyright: ignore[reportAssignmentType]

Callers

nothing calls this directly

Calls 4

ZeroOrOneChoiceClass · 0.90
ChoiceClass · 0.90
ZeroOrOneClass · 0.90
OptionalAttributeClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…