ComponentOne Input for WinForms
C1.Win.C1Input.4.5.2 Assembly / 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 System.Drawing.Color _
    ) As System.Drawing.Color
    public System.Drawing.Color SetForegroundColor( 
       System.Drawing.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