Home/ Reference/ Enumerations

Outline.Type

0 = no outline. For everything else — plain, dashed, artistic — Width = 0 is the simpler route.

Signature

Outline.Type

Notes

0 = no outline. For everything else — plain, dashed, artistic — Width = 0 is the simpler route.

Python example (runnable)

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

print("Outline type: ", shape.Outline.Type)     # 0 = no outline

# to really kill the outline, zero the width instead
shape.Outline.Width = 0
print("Outline removed")

About this section: Enumerations

Enumerations — VBA constants and their integer values.

Other entries in this section