8 references to SetTextColor
System.Windows.Forms (8)
winforms\Managed\System\WinForms\ComboBox.cs (1)
2208SafeNativeMethods.SetTextColor(new HandleRef(null, dc), ColorTranslator.ToWin32(ForeColor));
winforms\Managed\System\WinForms\Control.cs (1)
7142SafeNativeMethods.SetTextColor(new HandleRef(null, dc), ColorTranslator.ToWin32(ForeColor));
winforms\Managed\System\WinForms\ControlPaint.cs (1)
322SafeNativeMethods.SetTextColor(new HandleRef(null, target), 0); // black
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (3)
732SafeNativeMethods.SetTextColor(new HandleRef(null, dc), textColor); 839oldTextColor = SafeNativeMethods.SetTextColor(new HandleRef(null, dc), ColorTranslator.ToWin32(SystemColors.ControlLightLight)); 843SafeNativeMethods.SetTextColor(new HandleRef(null, dc), oldTextColor);
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (2)
2208oldTextColor = SafeNativeMethods.SetTextColor(new HandleRef(g, hdc), SafeNativeMethods.RGBToCOLORREF(textColor.ToArgb())); 2234SafeNativeMethods.SetTextColor(new HandleRef(g, hdc), oldTextColor);