An Integer value. Gets the value of the black component of the color regardless of the color scheme of the object.
Applies to objects: Color
[[Let] ret =] object.GetBlack (Doc) |
The GetBlack method syntax has these parts:
Part | Description |
object | A reference to an instance of the object. |
Doc | A reference to an instance of the Document object. |
ret | An Integer type variable (range 1 - 100). |
You can also use the Black propery to get the value of the black component of the object's color. However, that property is only effective if the color of objeñt is in the CMYK format. For correct transformation of an indexed color to the RGB or CMYK format for the specified document, the Doc parameter is used in the GetBlack method.
This example shows how to find out the value of the black component of a rectangle's fill color (the color was specified in the RGB format).
dim s as shape ' Create Shape object |
See Also |
Color Object |