File tree Expand file tree Collapse file tree 3 files changed +30
-1
lines changed
Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 1+ .. _WdRowHeightRule :
2+
3+ ``WD_ROW_HEIGHT_RULE ``
4+ ======================
5+
6+ alias: **WD_ROW_HEIGHT **
7+
8+ Specifies the rule for determining the height of a table row
9+
10+ Example::
11+
12+ from docx.enum.table import WD_ROW_HEIGHT_RULE
13+
14+ table = document.add_table(3, 3)
15+ table.rows[0].height_rule = WD_ROW_HEIGHT_RULE.EXACTLY
16+
17+ ----
18+
19+ AUTO
20+ The row height is adjusted to accommodate the tallest value in the row.
21+
22+ AT_LEAST
23+ The row height is at least a minimum specified value.
24+
25+ EXACTLY
26+ The row height is an exact value.
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ can be found here:
1616 WdLineSpacing
1717 WdOrientation
1818 WdRowAlignment
19+ WdRowHeightRule
1920 WdSectionStart
2021 WdStyleType
2122 WdTabAlignment
Original file line number Diff line number Diff line change 1616@alias ('WD_ROW_HEIGHT' )
1717class WD_ROW_HEIGHT_RULE (XmlEnumeration ):
1818 """
19- Specifies the rule for determining the height or a table row
19+ alias: **WD_ROW_HEIGHT**
20+
21+ Specifies the rule for determining the height of a table row
2022
2123 Example::
2224
You can’t perform that action at this time.
0 commit comments