forked from python-openxml/python-docx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
acpt: add scenarios for Cell.vertical_alignment
- Loading branch information
1 parent
c9e5ecb
commit fbfaaa6
Showing
7 changed files
with
138 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
.. _WdCellVerticalAlignment: | ||
|
||
``WD_CELL_VERTICAL_ALIGNMENT`` | ||
============================== | ||
|
||
alias: **WD_ALIGN_VERTICAL** | ||
|
||
Specifies the vertical alignment of text in one or more cells of a table. | ||
|
||
Example:: | ||
|
||
from docx.enum.table import WD_ALIGN_VERTICAL | ||
|
||
table = document.add_table(3, 3) | ||
table.cell(0, 0).vertical_alignment = WD_ALIGN_VERTICAL.BOTTOM | ||
|
||
---- | ||
|
||
TOP | ||
Text is aligned to the top border of the cell. | ||
|
||
CENTER | ||
Text is aligned to the center of the cell. | ||
|
||
BOTTOM | ||
Text is aligned to the bottom border of the cell. | ||
|
||
BOTH | ||
This is an option in the OpenXml spec, but not in Word itself. It's not | ||
clear what Word behavior this setting produces. If you find out please let | ||
us know and we'll update this documentation. Otherwise, probably best to | ||
avoid this option. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters