Home/ Reference/ Group / Order / Boolean

shape.AlignToPage(type)

Aligns to the page, or to the page center.

Signature

shape.AlignToPage(type)

Notes

Aligns to the page, or to the page center.

Python example (runnable)

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

shape.AlignToPage(-1)          # -1 = centre of the page
print("Centred on the page")

# common values: centre / middle / top-left / bottom-right; confirm per version

About this section: Group / Order / Boolean

Group / Order / Boolean — grouping, ordering and boolean operations.

Other entries in this section