ComponentOne MultiSelect for WinForms
C1.Framework.Drawing.Gdi.DeviceContexts Namespace / DeviceContext Class / SetForegroundColor Method

In This Topic
    SetForegroundColor Method
    In This Topic
    Sets the color of the foreground of the device context.
    Syntax
    'Declaration
     
    
    Public Function SetForegroundColor( _
       ByVal foregroundColor As Color _
    ) As Color
    public Color SetForegroundColor( 
       Color foregroundColor
    )

    Parameters

    foregroundColor
    Remarks
    The Color is used to draw the face of each character written by the TextOut and ExtTextOut functions. The Color is also used in converting bitmaps from color to monochrome and vice versa.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also