InfoConnect VBA Guide
Attachmate.Reflection.Objects.Emulation.Common Library / ThemeColor Object / SetForegroundColor Method
The host color or attribute whose mapped color should be set.
The new foreground color mapping for the specified attribute.
Example
SetForegroundColor Method (ThemeColor)
Sets the current mapped foreground color for a given terminal attribute.
Syntax
expression.SetForegroundColor( _
   ByVal attr As TerminalAttributeOption, _
   ByVal newColor As Color _
) 
where expression is a variable that represents a ThemeColor Object

Parameters

attr
The host color or attribute whose mapped color should be set.
newColor
The new foreground color mapping for the specified attribute.
Exceptions
ExceptionDescription
Throws an exception when The ThemeColor object is false.
Example
Attachmate.Reflection.Object.Emulation.Common.ThemeColor color
            
color.SetForegroundColor(IbmTerminalAttributeOption.GraphicsBlack,Color.blue)
See Also