Home/ Reference/ Enumerations

AlignToShape: type = -1

Centers on both axes. That's what the title text in the code uses.

Name

AlignToShape: type = -1

Notes

Centers on both axes. That's what the title text in the code uses.

Python example (runnable)

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

# -1 = centre on both axes
shape.AlignToShape(-1, other)
print("Centred on the target shape")

# other values live in cdrAlignType; try them one by one

About this section: Enumerations

Enumerations — VBA constants and their integer values.

Other entries in this section