CimGraphControl.UseAmbientForegroundColor (property)

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

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

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

The value of this property defaults to True.

Example

The following CimView script excerpt uses the ambient foreground color:
cimOleObj.UseAmbientForegroundColor = True