Reflection
SetForegroundColor Method (IThemeColor)


The host color or attribute whose mapped color is set.
The new foreground color mapping for the specified attribute.
Sets the current mapped foreground color for a given terminal attribute.
Syntax
'Declaration
 
Sub SetForegroundColor( _
   ByVal attr As IbmTerminalAttributeOption, _
   ByVal newColor As Color _
) 
'Usage
 
Dim instance As IThemeColor
Dim attr As IbmTerminalAttributeOption
Dim newColor As Color
 
instance.SetForegroundColor(attr, newColor)
void SetForegroundColor( 
   IbmTerminalAttributeOption attr,
   Color newColor
)

Parameters

attr
The host color or attribute whose mapped color is set.
newColor
The new foreground color mapping for the specified attribute.
Remarks
Throws an exception when IsBackgroundSingleColor is false.
See Also