21 references to ToArgb
Microsoft.Private.Windows.Core (1)
Windows\Win32\Graphics\Gdi\ARGB.cs (1)
40public static implicit operator ARGB(in Color color) => new((uint)color.ToArgb());
System.ComponentModel.TypeConverter (2)
src\runtime\src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (2)
77int targetARGB = color.ToArgb(); 81if (c.ToArgb() == targetARGB)
System.Drawing.Primitives (2)
src\runtime\src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (2)
77int targetARGB = color.ToArgb(); 81if (c.ToArgb() == targetARGB)
System.Private.Windows.Core (1)
Windows\Win32\Graphics\Gdi\ARGB.cs (1)
40public static implicit operator ARGB(in Color color) => new((uint)color.ToArgb());
System.Windows.Forms (7)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (3)
383if (ForeColor.ToArgb() == SystemColors.WindowText.ToArgb()) 389int colorRGB = ForeColor.ToArgb();
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (2)
382return SystemColors.Control.ToArgb() == Color.Black.ToArgb();
System\Windows\Forms\Rendering\ControlPaint.cs (2)
2191|| t_focusPenColor.ToArgb() != baseColor.ToArgb())
System.Windows.Forms.Design (2)
System\Drawing\Design\ColorEditor.ColorUI.cs (2)
105int rgb = color.ToArgb(); 108if (colors[i].ToArgb() == rgb)
System.Windows.Forms.Primitives (6)
System\Windows\Forms\DeviceContextExtensions.cs (2)
120return newColor.ToArgb() == color.ToArgb() ? color : newColor;
System\Windows\Forms\SystemDrawingExtensions.cs (4)
35return newColor.ToArgb() == color.ToArgb() ? color : newColor; 105? new Pen(Color.FromArgb(color.ToArgb())) { DashStyle = dashStyle } 121? new SolidBrush(Color.FromArgb(color.ToArgb()))