Paper Office
paper-docxAPI referenceenum.table

WD_ROW_HEIGHT_RULE

paper-docx 0.2.0 API reference

Alias: WD_ROW_HEIGHT

Specifies the rule for determining the height of a table row

Example::

from docx.enum.table import WD_ROW_HEIGHT_RULE

table = document.add_table(3, 3) table.rows[0].height_rule = WD_ROW_HEIGHT_RULE.EXACTLY

MS API name: WdRowHeightRule

https://msdn.microsoft.com/en-us/library/office/ff193620.aspx

Attributes

AT_LEAST

attributeAT_LEAST
= (1, 'atLeast', 'The row height is at least a minimum specified value.')

The row height is at least a minimum specified value.

AUTO

attributeAUTO
= (0, 'auto', 'The row height is adjusted to accommodate the tallest value in the row.')

The row height is adjusted to accommodate the tallest value in the row.

EXACTLY

attributeEXACTLY
= (2, 'exact', 'The row height is an exact value.')

The row height is an exact value.

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