[]
        
(Showing Draft Content)

C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.SetForegroundColor

SetForegroundColor Method

SetForegroundColor(Color)

Sets the color of the foreground of the device context.

Declaration
public Color SetForegroundColor(Color foregroundColor)
Public Function SetForegroundColor(foregroundColor As Color) As Color
Parameters
Type Name Description
Color foregroundColor
Returns
Type Description
Color

Returns the previous 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.