Home/ Reference/ Outline

shape.Outline.Type

Outline type. 0 = no outline.

Signature

shape.Outline.Type

Notes

Outline type. 0 = no outline.

Python example (runnable)

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

print("Outline type: ", o.Type)        # 0 = no outline
if o.Type == 0:
    print("No outline on this shape")

# o.Type = 0                       # force no outline

About this section: Outline

Outline — stroke width, style and color.

Other entries in this section