18 references to ToKnownColor
System.Drawing.Common (2)
System\Drawing\SystemBrushes.cs (1)
66
int idx = (int)c.
ToKnownColor
();
System\Drawing\SystemPens.cs (1)
67
int idx = (int)c.
ToKnownColor
();
System.Drawing.Primitives (2)
System\Drawing\ColorTranslator.cs (2)
58
switch (c.
ToKnownColor
())
297
switch (c.
ToKnownColor
())
System.Windows.Forms (12)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (6)
133
bool stockColor = colors.ButtonFace.
ToKnownColor
() == SystemColors.Control.
ToKnownColor
();
225
colors.ButtonFace.
ToKnownColor
() == SystemColors.Control.
ToKnownColor
()
236
bool stockColor = colors.ButtonFace.
ToKnownColor
() == SystemColors.Control.
ToKnownColor
();
System\Windows\Forms\Rendering\ControlPaint.cs (4)
1116
if (color.
ToKnownColor
() == SystemColors.Control.
ToKnownColor
())
1132
bool 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
());