Home/ Reference/ Outline

shape.Outline.Width

Line width in doc.Unit. Setting it to 0 removes the outline, which is less bother than changing Type. That's how the full-page background rectangle ends up with no o

Signature

shape.Outline.Width

Notes

Line width in doc.Unit. Setting it to 0 removes the outline, which is less bother than changing Type. That's how the full-page background rectangle ends up with 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                  # o : the outline object

print("Outline width: ", o.Width)           # document units (inches here)

o.Width = 2 / 25.4                 # set 2mm
print("New outline width: ", o.Width)

o.Width = 0                        # 0 removes the outline, simpler than changing Type

About this section: Outline

Outline — stroke width, style and color.

Other entries in this section