Color Object

An object for working with color. An instance of this object can be retrieved from the Document Object, Style Object, Shape Object, Character Object, TextBlock Object, Layer Object objects.

Properties

isIndex Read Only. Returns a Boolean value. If the object has indexed color, returns TRUE. Otherwise returns FALSE.
isRGB Read Only. Returns a Boolean value. If the object has RGB color, returns TRUE. Otherwise returns FALSE.
isCMYK Read Only. Returns a Boolean value. If the object has CMYK color, returns TRUE. Otherwise returns FALSE.
isTransparent Gets or sets a Boolean value. If the object has transparent color, returns TRUE. Otherwise returns FALSE.
Index Gets or sets an Integer value. Is the index of the color in the palette.
Red Gets or sets an Integer value. Represents the red component of RGB color.
Green Gets or sets an Integer value. Represents the green component of RGB color.
Blue Gets or sets an Integer value. Represents the blue component of RGB color.
Cyan Gets or sets an Integer value. Represents the cyan component of CMYK color.
Magenta Gets or sets an Integer value. Represents the magenta component of CMYK color.
Yellow Gets or sets an Integer value. Represents the yellow component of CMYK color.
Black Gets or sets an Integer value. Represents the black component of CMYK color.

Methods

SetRGB Sets an RGB color.
SetCMYK Sets a CMYK color.
GetRed Returns the Integer value of the red color component, regardless of the color scheme of the Color object.
GetGreen Returns the Integer value of the green color component, regardless of the color scheme of the Color object.
GetBlue Returns the Integer value of the blue color component, regardless of the color scheme of the Color object.
GetCyan Returns the Integer value of the cyan color component, regardless of the color scheme of the Color object.
GetMagenta Returns the Integer value of the magenta color component, regardless of the color scheme of the Color object.
GetYellow Returns the Integer value of the yellow color component, regardless of the color scheme of the Color object.
GetBlack Returns the Integer value of the black color component, regardless of the color scheme of the Color object.

 

See Also

Character object, ColorEntry object, Document object, Layer object, Shape object, Style object, TextBlock object