1.. _WdParagraphAlignment: 2 3``WD_PARAGRAPH_ALIGNMENT`` 4========================== 5 6alias: **WD_ALIGN_PARAGRAPH** 7 8Specifies paragraph justification type. 9 10Example:: 11 12 from docx.enum.text import WD_ALIGN_PARAGRAPH 13 14 paragraph = document.add_paragraph() 15 paragraph.alignment = WD_ALIGN_PARAGRAPH.CENTER 16 17---- 18 19LEFT 20 Left-aligned 21 22CENTER 23 Center-aligned. 24 25RIGHT 26 Right-aligned. 27 28JUSTIFY 29 Fully justified. 30 31DISTRIBUTE 32 Paragraph characters are distributed to fill the entire width of the 33 paragraph. 34 35JUSTIFY_MED 36 Justified with a medium character compression ratio. 37 38JUSTIFY_HI 39 Justified with a high character compression ratio. 40 41JUSTIFY_LOW 42 Justified with a low character compression ratio. 43 44THAI_JUSTIFY 45 Justified according to Thai formatting layout. 46