Green Property

Gets or sets an Integer value, that represents the green component of an RGB color.

Applies to: Color object, ColorEntry object

Syntax

[[Let] greenRet =] object.Green

[Let] object.Green = greenSet

The Green property syntax has these parts:

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

Remarks

The Green property is only effective if the color is an RGB color (see the IsRGB property).

Example

This example contains a document-level script. It demonstrates how to find out the value of the green component of the fill color (in RGB format) of a Shape object.

dim s as shape

' Create a Shape object
s = thisDoc.ActivePage.DrawRect(100,100,1000,1000)
If s.FillColor.IsRGB <> false Then ' An RGB color? MsgBox(s.FillColor.Green) ' If yes, display the value of the green component. endif

 

See Also

Blue property, Green property, Red property, IsRGB Property