Blue Property

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

Applies to: Color object, ColorEntry object

Syntax

[[Let] blueRet =] object.Blue

[Let] object.Blue = blueSet

The Blue property syntax has these parts:

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

Remarks

The Blue property is only effective if the color is a RGB color (see the IsRGB property).

Example

This example contains a document-level script. It demonstrates how to find out the value of the blue 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.Blue) ' If yes, display the value of the blue component endif

 

See Also

Blue property, Green property, Red property, IsRGB Property