12 references to GetNearestColor
System.Windows.Forms (12)
winforms\Managed\System\WinForms\ButtonInternal\ButtonStandardAdapter.cs (1)
111color = e.Graphics.GetNearestColor(color);
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (1)
1389highlight = g.GetNearestColor(highlight);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (4)
2347buttonShadow = g.GetNearestColor(buttonShadow); 2348buttonShadowDark = g.GetNearestColor(buttonShadowDark); 2349buttonFace = g.GetNearestColor(buttonFace); 2350highlight = g.GetNearestColor(highlight);
winforms\Managed\System\WinForms\ProfessionalColorTable.cs (2)
435return g.GetNearestColor(Color.FromArgb(newAlpha, red, green, blue)); 470return graphics.GetNearestColor(Color.FromArgb(r, g, b));
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
1931Color textColor = selected && hasFocus ? gridHost.GetSelectedItemWithFocusForeColor() : shouldInvertForHC ? InvertColor(ownerGrid.LineColor) : g.GetNearestColor(this.LabelTextColor);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (3)
1517Color clr = g.GetNearestColor(ownerGrid.LineColor); 1536Color clr = g.GetNearestColor(ownerGrid.SelectedItemWithFocusBackColor); 3513Pen linePen = new Pen(g.GetNearestColor(ownerGrid.LineColor));