19 references to ToKnownColor
System.Drawing (4)
commonui\System\Drawing\Advanced\ColorTranslator.cs (2)
55switch (c.ToKnownColor()) { 294switch (c.ToKnownColor()) {
commonui\System\Drawing\SystemBrushes.cs (1)
376int idx = (int)c.ToKnownColor();
commonui\System\Drawing\SystemPens.cs (1)
377int idx = (int)c.ToKnownColor();
System.Web (1)
UI\ObjectStateFormatter.cs (1)
1145writer.WriteEncoded((int)c.ToKnownColor());
System.Windows.Forms (14)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (6)
173bool stockColor = colors.buttonFace.ToKnownColor() == SystemColors.Control.ToKnownColor(); 318if (colors.buttonFace.ToKnownColor() == SystemColors.Control.ToKnownColor()) { 337bool stockColor = colors.buttonFace.ToKnownColor() == SystemColors.Control.ToKnownColor();
winforms\Managed\System\WinForms\ControlPaint.cs (6)
1011if (color.ToKnownColor() == SystemColors.Control.ToKnownColor()) { 1024bool stockColor = color.ToKnownColor() == SystemColors.Control.ToKnownColor(); 2816isSystemColors_Control = (color.ToKnownColor() == SystemColors.Control.ToKnownColor());
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (2)
2325bool stockColor = color.ToKnownColor() == SystemColors.Control.ToKnownColor();