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