Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5001c62

Browse files
author
Steve Canny
committed
docs: add API documentation for WD_ROW_HEIGHT_RULE
1 parent 254d2ef commit 5001c62

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

docs/api/enum/WdRowHeightRule.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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.

docs/api/enum/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ can be found here:
1616
WdLineSpacing
1717
WdOrientation
1818
WdRowAlignment
19+
WdRowHeightRule
1920
WdSectionStart
2021
WdStyleType
2122
WdTabAlignment

docx/enum/table.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
@alias('WD_ROW_HEIGHT')
1717
class 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

0 commit comments

Comments
 (0)