Home/ Reference/ Outline

shape.Outline.Color.HexValue

Outline color as hex, read/write.

Signature

shape.Outline.Color.HexValue

Notes

Outline color as hex, read/write.

Python example (runnable)

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

hex_now = (shape.Outline.Color.HexValue or "").upper()
print("Outline colour: ", hex_now)

if hex_now == "#000000":
    print("black outline")

# shape.Outline.Color.HexValue = "#1A4A72"     # hex works too

About this section: Outline

Outline — stroke width, style and color.

Other entries in this section