Black Property

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

Applies to: Color object, ColorEntry object

Syntax

[[Let] blackRet =] object.Black

[Let] object.Black = blackSet

The Black property syntax has these parts:

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

Remarks

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

 

See Also

Cyan property, Magenta property, Yellow property, IsCMYK property