Reflection Desktop VBA Guide
Attachmate.Reflection.Objects.Emulation.IbmHosts Library / Attachmate.Reflection.Objects.Emulation.IbmHosts Library / ThemeColor Object / GetForegroundColor Method
An IbmTerminalAttributeOption Enumeration value that specifies the host color or attribute whose mapped color should be returned.
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 IbmTerminalAttributeOption _
    ) As Color
    where expression is a variable that represents a ThemeColor Object

    Parameters

    attr
    An IbmTerminalAttributeOption Enumeration value that specifies 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.
    See Also