Paper Office
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

attributexmlstr

XML 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_Hyperlink

Add an a:hlinkClick child element with r:id attribute set to rId.

paramrIdstr

Returns

pptx.oxml.action.CT_Hyperlink

first_child_found_in

funcfirst_child_found_in(*tagnames: str) -> _Element | None

First child with tag in tagnames, or None if not found.

paramtagnamesstr
= ()

Returns

lxml.etree._Element | None

insert_element_before

funcinsert_element_before(elm: ElementBase, *tagnames: str)
paramelmElementBase
paramtagnamesstr
= ()

remove_all

funcremove_all(*tagnames: str) -> None

Remove child elements with tagname (e.g. "a:p") in tagnames.

paramtagnamesstr
= ()

Returns

None

xpath

funcxpath(xpath_str: str) -> Any

Override of lxml _Element.xpath() method.

Provides standard Open XML namespace mapping (nsmap) in centralized location.

paramxpath_strstr

Returns

typing.Any

On this page