Table of contents
TOC
Collapse the table of content
Expand the table of content

ColorCMYK Object (Publisher)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Represents a cyan-magenta-yellow-black (CMYK) color value.

Example

Use the CMYK property of a ColorFormat object to return a ColorCMYK object. Use the Cyan, Magenta, Yellow, and Black properties of the ColorCMYK object to individually set each of the four colors in the CMYK color value. Use the SetCMYK method on a ColorCMYK object to set all four colors at once.

The following example retrieves the CMYK color value of shape one's fill and changes it to another CMYK color value.

Dim cmykColor As ColorCMYK Set cmykColor = ActiveDocument.Pages(1).Shapes(1).Fill.ForeColor.CMYK cmykColor.SetCMYK Cyan:=0, Magenta:=255, Yellow:=255, Black:=50

Methods

Name
SetCMYK

Properties

Name
Application
Black
Cyan
Magenta
Parent
Yellow
© 2017 Microsoft