Sets color components in CMYK format.
Applies to: Color object, ColorEntry object
object.SetCMYK (cyan, magenta, yellow, black) |
The SetCMYK method syntax has these parts:
Part | Description |
object | Required. An expression that returns an instance of an object in the Applies to list. |
cyan | Required. An expression that returns àn Integer value (from 0 to 100). |
magenta | Required. An expression that returns àn Integer value (from 0 to 100). |
yellow | Required. An expression that returns àn Integer value (from 0 to 100). |
black | Required. An expression that returns àn Integer value (from 0 to 100). |
After the SetCMYK method has been called, the color is converted to the CMYK format regardless of its previous format.
This example demonstrates how to change the fill color of a rectanlge in CMYK format.
dim s as shape ' Create a Shape object |
See Also |
SetRGB Method |