Color (Property)

Applies To:

ColorRange object, Font object, Fill object, Line object

Description:

Sets the color of text associated with a font object. This property may be set using the values in the BqColorType constant group or by using a hexadecimal number that represents a RGB color value.

For a gauge object (Bullet, Speedometer, Thermometer, TrafficLight) sets the color for values assigned in the numeric scale.

Action:

Read-write, Number

Constants:

These values are some of those in the BqColorType constant group. For a complete list, see the Interactive Reporting Object Model Script Editor:

Example:

This example shows how to set the color, width and dash style of the border of an Dashboard text label box:

MyColor = ActiveDocument.Sections["Dashboard"].Shapes["TextLabel"]
MyColor.Line.Color = bqRed
MyColor.Line.Width = 4
MyColor.Line.DashStyle = bqDashStyleDotDotDash