CimGraphControl.ForegroundColor (property)

Gets and sets the control's foreground color.
Syntax: OLE_COLOR = object.ForegroundColor
object.ForegroundColor = OLE_COLOR
Description: CimGraphControl.ForegroundColor is used for fonts. The property returns the ambient foreground color of the control container (e.g. CimView or VB) when using ambient foreground color. If you change the property while using the ambient foreground color, the property UseAmbientForegroundColor is set to False.

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

Example

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