InfoConnect for Unisys VBA Guide
GetForegroundColor Function (ThemeColor)
The host color or attribute whose mapped color should be returned.
Returns the current mapped foreground color for a given terminal attribute.
Syntax
object.GetForegroundColor( _
   ByVal attr As IbmTerminalAttributeOption _
) As Color

Parameters

attr
The host color or attribute whose mapped color should be returned.

Return Value

The current foreground color mapping for the specified attribute.
Exceptions
ExceptionDescription
NewInvalidOperationExceptionThrows an exception when the ThemeColor object is null.
Example
Attachmate.Reflection.Object.Emulation.IbmHosts.ThemeColor color
            
Dim foregroundColor As Color = color.GetForegroundColor(IbmTerminalAttributeOption.GraphicsBlack)
See Also

 

 


2015 Attachmate

Send Feedback