Home/ Reference/ Fill

shape.Fill.UniformColor.CMYKCyan / .CMYKMagenta / .CMYKYellow / .CMYKBlack

Reads one CMYK channel at a time.

Signature

shape.Fill.UniformColor.CMYKCyan / .CMYKMagenta / .CMYKYellow / .CMYKBlack

Notes

Reads one CMYK channel at a time.

Python example (runnable)

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

print("C:", c.CMYKCyan)
print("M:", c.CMYKMagenta)
print("Y:", c.CMYKYellow)
print("K:", c.CMYKBlack)

About this section: Fill

Fill — uniform, gradient and pattern fills.

Other entries in this section