IsCMYK Property

Read-only. Returns a Boolean value. If the object has a CMYK color, returns TRUE. Otherwise returns FALSE.

Applies to: Color object, ColorEntry object

Syntax

[[Let] isCMYKRet =] object.IsCMYK

The IsCMYK property syntax has these parts:

Part Description
object Required. An expression that returns an instance of an object in the Applies to list.
isCMYKRet Optional. A Boolean type variable.

Remarks

It's recommended that you check the status of this property before using the Cyan, Magenta, Yellow and Black properties.

Example

This example contains a document-level script. It demonstrates how to find out the color format of the fill color in a Shape object. If the color is in CMYK format, the value of the cyan component is displayed.

dim s as shape

' Create a Shape object
s = thisDoc.ActivePage.DrawRect(100,100,1000,1000)
If s.FillColor.IsCMYK <> false Then ' A CMYK color? trace s.FillColor.Cyan ' If yes, display the value of the Cyan property endif

 

See Also

Black property, Cyan property, Magenta property, Yellow property , Index Property, IsRGB Property, IsCMYK Property