Home/ Reference/ Fill

shape.Fill.UniformColor.CMYKAssign(c, m, y, k)

Assigns CMYK. More accurate for anything that goes to press.

Signature

shape.Fill.UniformColor.CMYKAssign(c, m, y, k)

Notes

Assigns CMYK. More accurate for anything that goes to press.

Python example (runnable)

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

# CMYKAssign(C, M, Y, K): four integers from 0 to 100, more accurate for print
shape.Fill.UniformColor.CMYKAssign(100, 70, 0, 0)
print("Filled with CMYK(100,70,0,0)")

About this section: Fill

Fill — uniform, gradient and pattern fills.

Other entries in this section