13 references to ToKnownColor
System.Drawing.Primitives (2)
System\Drawing\ColorTranslator.cs (2)
58switch (c.ToKnownColor()) 297switch (c.ToKnownColor())
System.Windows.Forms (9)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (3)
131bool stockColor = colors.ButtonFace.ToKnownColor() == SystemColors.Control.ToKnownColor(); 223colors.ButtonFace.ToKnownColor() == SystemColors.Control.ToKnownColor() 234bool stockColor = colors.ButtonFace.ToKnownColor() == SystemColors.Control.ToKnownColor();
System\Windows\Forms\Rendering\ControlPaint.cs (4)
1084if (color.ToKnownColor() == SystemColors.Control.ToKnownColor()) 1100bool stockColor = color.ToKnownColor() == SystemColors.Control.ToKnownColor();
System\Windows\Forms\Rendering\ControlPaint.HLSColor.cs (2)
29_isSystemColors_Control = color.ToKnownColor() == SystemColors.Control.ToKnownColor();
System.Windows.Forms.Primitives (2)
System\Windows\Forms\GdiPlus\GdiPlusCache.cs (2)
33: PenFromKnownColor(color.ToKnownColor()); 50: (SolidBrush?)BrushFromKnownColor(color.ToKnownColor());