Paper Office
paper-pptxAPI referenceoxml.text

CT_TextParagraphProperties

paper-pptx 0.2.0 API reference

a:pPr custom element class.

Attributes

algn

attributealgnPP_PARAGRAPH_ALIGNMENT | None
= OptionalAttribute('algn', PP_PARAGRAPH_ALIGNMENT)

buAutoNum

attributebuAutoNumCT_TextAutonumberBullet | None

buChar

attributebuCharCT_TextCharBullet | None

buFont

attributebuFontCT_TextFont | None
= ZeroOrOne('a:buFont', successors=(_tag_seq[10:]))

buNone

attributebuNoneBaseOxmlElement | None

buSzPct

attributebuSzPctCT_TextBulletSizePercent | None
= ZeroOrOne('a:buSzPct', successors=(_tag_seq[7:]))

defRPr

attributedefRPrCT_TextCharacterProperties | None
= ZeroOrOne('a:defRPr', successors=(_tag_seq[16:]))

eg_bullet

attributeeg_bullet
= ZeroOrOneChoice((Choice('a:buNone'), Choice('a:buAutoNum'), Choice('a:buChar')), successors=(_tag_seq[13:]))

get_or_add_buFont

attributeget_or_add_buFontCallable[[], CT_TextFont]

get_or_add_buSzPct

attributeget_or_add_buSzPctCallable[[], CT_TextBulletSizePercent]

get_or_add_defRPr

attributeget_or_add_defRPrCallable[[], CT_TextCharacterProperties]

get_or_change_to_buAutoNum

attributeget_or_change_to_buAutoNumCallable[[], CT_TextAutonumberBullet]

get_or_change_to_buChar

attributeget_or_change_to_buCharCallable[[], CT_TextCharBullet]

get_or_change_to_buNone

attributeget_or_change_to_buNoneCallable[[], BaseOxmlElement]

indent

attributeindentLength | None
= OptionalAttribute('indent', ST_TextIndent)

line_spacing

attributeline_spacingfloat | Length | None

The spacing between baselines of successive lines in this paragraph.

A float value indicates a number of lines. A Length value indicates a fixed spacing. Value is contained in ./a:lnSpc/a:spcPts/@val or ./a:lnSpc/a:spcPct/@val. Value is None if no element is present.

lnSpc

attributelnSpcCT_TextSpacing | None
= ZeroOrOne('a:lnSpc', successors=(_tag_seq[1:]))

lvl

attributelvlint
= OptionalAttribute('lvl', ST_TextIndentLevelType, default=0)

marL

attributemarLLength | None
= OptionalAttribute('marL', ST_TextMargin)

space_after

attributespace_afterLength | None

The EMU equivalent of the centipoints value in ./a:spcAft/a:spcPts/@val.

space_before

attributespace_before

The EMU equivalent of the centipoints value in ./a:spcBef/a:spcPts/@val.

spcAft

attributespcAftCT_TextSpacing | None
= ZeroOrOne('a:spcAft', successors=(_tag_seq[3:]))

spcBef

attributespcBefCT_TextSpacing | None
= ZeroOrOne('a:spcBef', successors=(_tag_seq[2:]))

xml

attributexmlstr

XML string for this element, suitable for testing purposes.

Pretty printed for readability and without an XML declaration at the top.

Functions

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