12 references to SetTextColor
System.Private.Windows.Core (3)
Windows\Win32\Graphics\Gdi\SetTextColorScope.cs (3)
27
/// <see cref="PInvokeCore.
SetTextColor
(HDC, COLORREF)"/>.
31
_previousColor = PInvokeCore.
SetTextColor
(hdc, color);
41
PInvokeCore.
SetTextColor
(_hdc, _previousColor);
System.Windows.Forms (9)
System\Windows\Forms\Control.cs (1)
5878
PInvokeCore.
SetTextColor
(dc, (COLORREF)(uint)ColorTranslator.ToWin32(ForeColor));
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
2015
PInvokeCore.
SetTextColor
(dc, (COLORREF)(uint)ColorTranslator.ToWin32(ForeColor));
3685
PInvokeCore.
SetTextColor
(
3703
PInvokeCore.
SetTextColor
(
System\Windows\Forms\Controls\ListView\ListView.cs (1)
6022
PInvokeCore.
SetTextColor
(nmlvcd->nmcd.hdc, ForeColor);
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (3)
131
PInvokeCore.
SetTextColor
(dc, textColor);
266
COLORREF oldTextColor = PInvokeCore.
SetTextColor
(dc, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlLightLight));
270
PInvokeCore.
SetTextColor
(dc, oldTextColor);
System\Windows\Forms\Rendering\ControlPaint.cs (1)
347
PInvokeCore.
SetTextColor
(targetDC, (COLORREF)0x00000000); // black