CimGraphControl.UseAmbientBackgroundColor (property)

Indicates if the control is using the ambient background color.
Syntax: Boolean = object.UseAmbientBackgroundColor
object.UseAmbientBackgroundColor = Boolean
Description: CimGraphControl.UseAmbientBackgroundColor indicates if the control is using ambient background color.

When the property is set to True, BackgroundColor is automatically set to the control container's ambient background color. When the control container's ambient background color is changed, BackgroundColor automatically reflects the change.

When the property is set to False, BackgroundColor does not change. However, it no longer automatically reflects changes in the control container's ambient background color.

The value of this property defaults to True.

Example

The following CimView script excerpt uses the ambient background color:
cimOleObj.UseAmbientBackgroundColor = True