CimGraphControl.BackgroundColor (property)

Gets and sets the control's background color.
Syntax: OLE_COLOR = object.BackgroundColor
object.BackgroundColor = OLE_COLOR
Description: CimGraphControl.BackgroundColor is used to fill all background except the legend's and the chart's (where the series, sliders and grid are) backgrounds. The property returns the ambient background color of the control container (e.g. CimView or VB) when using ambient background color. If you change the property while using the ambient background color, the property UseAmbientBackgroundColor is set to False.

The value of this property defaults to the ambient background color.


The following CimView script excerpt changes the background color to red:
cimOleObj.BackgroundColor = cimOleObj.RGB(255,0,0)