ComponentOne Input for WinForms
C1.Win.C1Input.4.5.2 Assembly / C1.Framework.Drawing.Gdi.DeviceContexts Namespace / DeviceContext Class / ForegroundColor Property

In This Topic
    ForegroundColor Property (DeviceContext)
    In This Topic
    Gets or sets the color of the foreground of the device context.
    Syntax
    'Declaration
     
    Public Property ForegroundColor As System.Drawing.Color
    public System.Drawing.Color ForegroundColor {get; set;}

    Property Value

    A System.Drawing.Color structure that indicates the color of the foreground of the device context.
    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