Magenta Property

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

Applies to: Color object, ColorEntry object

Syntax

[[Let] magentaRet =] object.Magenta

[Let] object.Magenta = magentaSet

The Magenta property syntax has these parts:

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

Remarks

The Magenta 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 magenta 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.Magenta) ' If yes, display the value of the magenta component. endif

 

See Also

Cyan property, Yellow property, Black property, IsCMYK property