Yellow Property

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

Applies to: Color object, ColorEntry object

Syntax

[[Let] yellowRet =] object.Yellow

[Let] object.Yellow = yellowSet

The Yellow property syntax has these parts:

Part Description
object Required. An expression that returns an object from the Applies to list.
yellowRet Optional. An Integer type variable.
yellowSet Required. An expression that returns an Integer value.

Remarks

The Yellow 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 yellow component of the fill color (in CMYK format) of a Shape object.

dim s as shape

' создание ShapeObject
s = thisDoc.ActivePage.DrawRect(100,100,1000,1000)
If s.FillColor.IsCMYK<> false Then ' A CMYK color? MsgBox(s.FillColor.Yellow) ' If yes, display the value of the cyan component. endif

 

See Also

Cyan property, Magenta property, Black property, IsCMYK property