InfoConnect for Unisys VBA Guide
Attachmate.Reflection.Objects.Emulation.Common Library / ThemeColor Object / GetForegroundColor Method
The host color or attribute whose mapped color should be returned.
Example
In This Topic
    GetForegroundColor Method (ThemeColor)
    In This Topic
    Returns the current mapped foreground color for a given terminal attribute.
    Syntax
    expression.GetForegroundColor( _
       ByVal attr As TerminalAttributeOption _
    ) As Color
    where expression is a variable that represents a ThemeColor Object

    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
    Throws an exception when the ThemeColor object is null.
    Example
    Attachmate.Reflection.Object.Emulation.Common.ThemeColor color
                
    Dim foregroundColor As Color = color.GetForegroundColor(IbmTerminalAttributeOption.GraphicsBlack)
    See Also