InfoConnect API Guide
Attachmate.Reflection.Emulation.Common Namespace / IThemeColor Interface / GetForegroundColor Method
The host color or attribute whose mapped color is returned.


In This Topic
    GetForegroundColor Method (IThemeColor)
    In This Topic
    Returns the current mapped foreground color for a given terminal attribute.
    Syntax
    'Declaration
     
    
    Function GetForegroundColor( _
       ByVal attr As TerminalAttributeOption _
    ) As Color
    'Usage
     
    
    Dim instance As IThemeColor
    Dim attr As TerminalAttributeOption
    Dim value As Color
     
    value = instance.GetForegroundColor(attr)
    Color GetForegroundColor( 
       TerminalAttributeOption attr
    )

    Parameters

    attr
    The host color or attribute whose mapped color is returned.

    Return Value

    The current foreground color mapping for the specified attribute.
    Remarks
    Throws an exception when IsBackgroundSingleColor is false.
    See Also