Paper Office
paper-docxAPI referenceenum.text

WD_TAB_ALIGNMENT

paper-docx 0.2.0 API reference

Specifies the tab stop alignment to apply.

MS API name: WdTabAlignment

URL: https://msdn.microsoft.com/EN-US/library/office/ff195609.aspx

Attributes

BAR

attributeBAR
= (4, 'bar', 'Bar-aligned.')

Bar-aligned.

CENTER

attributeCENTER
= (1, 'center', 'Center-aligned.')

Center-aligned.

CLEAR

attributeCLEAR
= (101, 'clear', 'Clear an inherited tab stop.')

Clear an inherited tab stop.

DECIMAL

attributeDECIMAL
= (3, 'decimal', 'Decimal-aligned.')

Decimal-aligned.

END

attributeEND
= (102, 'end', 'Right-aligned. (deprecated)')

Right-aligned. (deprecated)

LEFT

attributeLEFT
= (0, 'left', 'Left-aligned.')

Left-aligned.

LIST

attributeLIST
= (6, 'list', 'List-aligned. (deprecated)')

List-aligned. (deprecated)

NUM

attributeNUM
= (103, 'num', 'Left-aligned. (deprecated)')

Left-aligned. (deprecated)

attributeRIGHT
= (2, 'right', 'Right-aligned.')

Right-aligned.

START

attributeSTART
= (104, 'start', 'Left-aligned. (deprecated)')

Left-aligned. (deprecated)

xml_value

attributexml_valuestr | None

Functions

from_xml

funcfrom_xml(xml_value: str | None) -> Self

Enumeration member corresponding to XML attribute value xml_value.

Example::

WD_PARAGRAPH_ALIGNMENT.from_xml("center") WD_PARAGRAPH_ALIGNMENT.CENTER

paramxml_valuestr | None

Returns

typing_extensions.Self

to_xml

functo_xml(value: int | _T | None) -> str | None

XML value of this enum member, generally an XML attribute value.

paramvalueint | _T | None

Returns

str | None

On this page