Home/ Reference/ Transparency & Blend

shape.Transparency.Type

The current transparency type (none, uniform, fountain, pattern, texture). Read-only. Use it to find out whether a shape is transparent at all.

Signature

shape.Transparency.Type

Notes

The current transparency type (none, uniform, fountain, pattern, texture). Read-only. Use it to find out whether a shape is transparent at all.

Python example (runnable)

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

t = shape.Transparency.Type
print("Transparency type code: ", t)                            # 0=none 1=uniform ...

if t == 0:
    print("This shape has no transparency")
    shape.Transparency.ApplyUniformTransparency(30)
    print("30% transparency applied")

About this section: Transparency & Blend

Transparency & Blend — opacity and merge modes.

Other entries in this section