Gdi32SetTextColor Method
Sets the text color for the specified device context to the specified color.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("GDI32.dll")]
public static uint SetTextColor(
IntPtr hdc,
int color
)
<DllImportAttribute("GDI32.dll">]
Public Shared Function SetTextColor (
hdc As IntPtr,
color As Integer
) As UInteger
Dim hdc As IntPtr
Dim color As Integer
Dim returnValue As UInteger
returnValue = Gdi32.SetTextColor(hdc,
color)
public:
[DllImportAttribute(L"GDI32.dll")]
static unsigned int SetTextColor(
IntPtr hdc,
int color
)
[<DllImportAttribute("GDI32.dll")>]
static member SetTextColor :
hdc : IntPtr *
color : int -> uint32
No code example is currently available or this language may not be supported.
- hdc IntPtr
-
A handle to the device context.
- color Int32
-
The new color for the text.
UInt32
If the function succeeds, the return value is a color reference for the previous text color as a COLORREF value.
If the function fails, the return value is CLR_INVALID (-1 or 0xFFFFFFFF).