12 references to FindNearestColor
System.Windows.Forms (12)
System\Windows\Forms\Control.cs (1)
8198
using CreateBrushScope hbrush = new(hdc.
FindNearestColor
(color));
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.ColorOptions.cs (10)
113
colors.ButtonFace = hdc.
FindNearestColor
(colors.ButtonFace);
114
colors.ButtonShadow = hdc.
FindNearestColor
(colors.ButtonShadow);
115
colors.ButtonShadowDark = hdc.
FindNearestColor
(colors.ButtonShadowDark);
116
colors.ContrastButtonShadow = hdc.
FindNearestColor
(colors.ContrastButtonShadow);
117
colors.WindowText = hdc.
FindNearestColor
(colors.WindowText);
118
colors.Highlight = hdc.
FindNearestColor
(colors.Highlight);
119
colors.LowHighlight = hdc.
FindNearestColor
(colors.LowHighlight);
120
colors.LowButtonFace = hdc.
FindNearestColor
(colors.LowButtonFace);
121
colors.WindowFrame = hdc.
FindNearestColor
(colors.WindowFrame);
122
colors.WindowDisabled = hdc.
FindNearestColor
(colors.WindowDisabled);
System\Windows\Forms\Controls\Labels\Label.cs (1)
1264
color = hdc.
FindNearestColor
(Enabled ? ForeColor : DisabledColor);