CimGraphControl.UseAmbientChartColor (property)

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

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

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

Please note that the control container's ambient background color is used because control containers do not have an ambient chart color.

The value of this property defaults to True.

Example

The following CimView script excerpt disables the ambient chart color:
cimOleObj.UseAmbientChartColor = False