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