7 writes to Highlight
System.Windows.Forms (5)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.ColorOptions.cs (5)
44colors.Highlight = SystemColors.ControlLightLight; 52colors.Highlight = ControlPaint.LightLight(_backColor); 58colors.Highlight = ControlPaint.LightLight(_backColor); 90colors.Highlight = colors.LowHighlight; 118colors.Highlight = hdc.FindNearestColor(colors.Highlight);
System.Windows.Forms.Tests (2)
System\Windows\Forms\CheckBoxBaseAdapterTests.cs (1)
109Highlight = Color.Yellow
System\Windows\Forms\RadioButtonBaseAdapterTests.cs (1)
179Highlight = Color.LightGray
33 references to Highlight
System.Windows.Forms (33)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.ColorOptions.cs (5)
78if (colors.Highlight.GetBrightness() < .5) 84Adjust255(adjust, colors.Highlight.R), 85Adjust255(adjust, colors.Highlight.G), 86Adjust255(adjust, colors.Highlight.B)); 118colors.Highlight = hdc.FindNearestColor(colors.Highlight);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (8)
148: stockColor ? SystemColors.ControlLightLight : colors.Highlight); 167: SystemInformation.HighContrast ? colors.Highlight : colors.ButtonFace); 205using CreatePenScope highlightPen = new(colors.Highlight); 251: stockColor ? SystemColors.ControlLightLight : colors.Highlight); 307using CreatePenScope topLeftPen = new(up ? colors.Highlight : color); 313using CreatePenScope bottomRightPen = new(up ? color : colors.Highlight); 474using var highlightBrush = colors.Highlight.GetCachedSolidBrushScope(); 503TextRenderer.DrawTextInternal(e, Control.Text, Control.Font, r, colors.Highlight, formatFlags);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (2)
59backColor = colors.Highlight; 62backColor = colors.Highlight.MixColor(colors.ButtonFace);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (3)
22using Brush backgroundBrush = CreateDitherBrush(colors.Highlight, colors.ButtonFace); 68using Brush backgroundBrush = CreateDitherBrush(colors.Highlight, colors.ButtonFace); 90using var highlight = colors.Highlight.GetCachedPenScope();
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
132backgroundBrush = CreateDitherBrush(colors.Highlight, colors.ButtonFace);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (2)
168checkColor = SystemInformation.HighContrast ? colors.Highlight : colors.ButtonShadow; 215using CreatePenScope high = new(colors.Highlight);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxFlatAdapter.cs (2)
23PaintFlatWorker(e, colors.WindowText, colors.Highlight, colors.WindowFrame, colors); 61PaintFlatWorker(e, colors.WindowText, colors.Highlight, colors.WindowFrame, colors);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxPopupAdapter.cs (2)
34colors.Options.HighContrast ? colors.ButtonFace : colors.Highlight, 69colors.Options.HighContrast ? colors.ButtonFace : colors.Highlight,
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (1)
43using var lightLight = colors.Highlight.GetCachedPenScope();
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonFlatAdapter.cs (2)
24PaintFlatWorker(e, colors.WindowText, colors.Highlight, colors.WindowFrame, colors); 64PaintFlatWorker(e, colors.WindowText, colors.Highlight, colors.WindowFrame, colors);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonPopupAdapter.cs (3)
30colors.Options.HighContrast ? colors.ButtonFace : colors.Highlight); 55Color checkBackgroundColor = colors.Options.HighContrast ? colors.ButtonFace : colors.Highlight; 80DrawCheckBackground3DLite(e, layout.CheckBounds, colors.Highlight, colors, disabledColors: true);
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (2)
1473colors.Options.HighContrast ? colors.ButtonFace : colors.Highlight, 1520colors.Options.HighContrast ? colors.ButtonFace : colors.Highlight,