Cyan Property

Gets or sets an Integer value, that represents the cyan component of CMYK color.

Applies to: Color object, ColorEntry object

Syntax

[[Let] cyanRet =] object.Cyan

[Let] object.Cyan = cyanSet

The Blue property syntax has these parts:

Part Description
object Required. An expression that returns an object from the Applies to list.
cyanRet Optional. An Integer value.
cyanSet Required. An expression that returns an Integer value.

Remarks

The Cyan property is only effective if the color is a CMYK color (see the IsCMYK property).

Example

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

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? MsgBox(s.FillColor.Cyan) ' If yes, display the value of the cyan component. endif

 

See Also

Magenta property, Yellow property, Black property, IsCMYK property