Send comments on this topic.
SetForegroundColor Method
Attachmate.Reflection.Objects.Emulation.IbmHosts Library > ThemeColor Object : SetForegroundColor Method
attr
The host color or attribute whose mapped color should be set.
newColor
The new foreground color mapping for the specified attribute.
Sets the current mapped foreground color for a given terminal attribute.

Syntax

 
object.SetForegroundColor( 
   ByVal attr As IbmTerminalAttributeOption,
   ByVal newColor As Color
) 

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
NewInvalidOperationExceptionThrows an exception when The ThemeColor object is false.

Example

Copy Code
Attachmate.Reflection.Object.Emulation.IbmHosts.ThemeColor color
            
color.SetForegroundColor(IbmTerminalAttributeOption.GraphicsBlack,Color.blue)

See Also