Home/ Reference/ Text

shape.Text.Story.Alignment

Horizontal paragraph alignment (cdrAlignment enum).

Signature

shape.Text.Story.Alignment

Notes

Horizontal paragraph alignment (cdrAlignment enum).

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
shape = app.ActiveSelectionRange(1)

# alignment follows cdrAlignment (1 left 2 right 3 centre 4 justified)
shape.Text.Story.Alignment = 3
print("Alignment set to centre")

About this section: Text

Text — artistic and paragraph text.

Other entries in this section