paper-pptxAPI referenceoxml.text
CT_TextCharacterProperties
paper-pptx 0.2.0 API reference
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.
Attributes
b
attributebbool | None= OptionalAttribute('b', XsdBoolean)eg_fillProperties
attributeeg_fillProperties= ZeroOrOneChoice((Choice('a:noFill'), Choice('a:solidFill'), Choice('a:gradFill'), Choice('a:blipFill'), Choice('a:pattFill'), Choice('a:grpFill')), successors=('a:effectLst', 'a:effectDag', 'a:highlight', 'a:uLnTx', 'a:uLn', 'a:uFillTx', 'a:uFill', 'a:latin', 'a:ea', 'a:cs', 'a:sym', 'a:hlinkClick', 'a:hlinkMouseOver', 'a:rtl', 'a:extLst'))get_or_add_hlinkClick
attributeget_or_add_hlinkClickCallable[[], CT_Hyperlink]get_or_add_latin
attributeget_or_add_latinCallable[[], CT_TextFont]hlinkClick
attributehlinkClickCT_Hyperlink | None= ZeroOrOne('a:hlinkClick', successors=('a:hlinkMouseOver', 'a:rtl', 'a:extLst'))i
attributeibool | None= OptionalAttribute('i', XsdBoolean)lang
attributelangMSO_LANGUAGE_ID | None= OptionalAttribute('lang', MSO_LANGUAGE_ID)latin
attributelatinCT_TextFont | None= ZeroOrOne('a:latin', successors=('a:ea', 'a:cs', 'a:sym', 'a:hlinkClick', 'a:hlinkMouseOver', 'a:rtl', 'a:extLst'))sz
attributeszint | None= OptionalAttribute('sz', ST_TextFontSize)u
attributeuMSO_TEXT_UNDERLINE_TYPE | None= OptionalAttribute('u', MSO_TEXT_UNDERLINE_TYPE)xml
attributexmlstrXML string for this element, suitable for testing purposes.
Pretty printed for readability and without an XML declaration at the top.
Functions
add_hlinkClick
funcadd_hlinkClick(rId: str) -> CT_HyperlinkAdd an a:hlinkClick child element with r:id attribute set to rId.
paramrIdstrReturns
pptx.oxml.action.CT_Hyperlinkfirst_child_found_in
funcfirst_child_found_in(*tagnames: str) -> _Element | NoneFirst child with tag in tagnames, or None if not found.
paramtagnamesstr= ()Returns
lxml.etree._Element | Noneinsert_element_before
funcinsert_element_before(elm: ElementBase, *tagnames: str)paramelmElementBaseparamtagnamesstr= ()remove_all
funcremove_all(*tagnames: str) -> NoneRemove child elements with tagname (e.g. "a:p") in tagnames.
paramtagnamesstr= ()Returns
Nonexpath
funcxpath(xpath_str: str) -> AnyOverride of lxml _Element.xpath() method.
Provides standard Open XML namespace mapping (nsmap) in centralized location.
paramxpath_strstrReturns
typing.Any