ComponentOne CalendarView 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.
    See Also