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.
enum: add WD_TABLE_DIRECTION enumeration
- Loading branch information
Steve Canny
committed
Feb 21, 2015
1 parent
7541f20
commit 221e28c
Showing
3 changed files
with
60 additions
and
2 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,24 @@ | ||
.. _WdTableDirection: | ||
|
||
``WD_TABLE_DIRECTION`` | ||
====================== | ||
|
||
Specifies the direction in which an application orders cells in the | ||
specified table or row. | ||
|
||
Example:: | ||
|
||
from docx.enum.table import WD_TABLE_DIRECTION | ||
|
||
table = document.add_table(3, 3) | ||
table.direction = WD_TABLE_DIRECTION.RTL | ||
|
||
---- | ||
|
||
LTR | ||
The table or row is arranged with the first column in the leftmost | ||
position. | ||
|
||
RTL | ||
The table or row is arranged with the first column in the rightmost | ||
position. |
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 |
---|---|---|
|
@@ -17,4 +17,5 @@ can be found here: | |
WdSectionStart | ||
WdStyleType | ||
WdRowAlignment | ||
WdTableDirection | ||
WdUnderline |
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