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