Home/ Reference/ Application

app.ActiveShape

The first shape in the selection. Same as ActiveSelectionRange(1).

Signature

app.ActiveShape

Notes

The first shape in the selection. Same as ActiveSelectionRange(1).

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
shape = app.ActiveShape                 # first shape in the selection

if shape is not None:
    print("Type: ", shape.Type)          # 6=text 7=group 1=rectangle 2=ellipse 3=curve
else:
    print("Nothing is selected")

About this section: Application

Application — the CorelDRAW application object.

Other entries in this section