56 references to Highlight
System.Drawing.Common.Tests (4)
System\Drawing\ColorTranslatorTests.cs (2)
26yield return (unchecked((int)0x8000000D), SystemColors.Highlight); 121yield return ("highlight", SystemColors.Highlight);
System\Drawing\SystemBrushesTests.cs (1)
27yield return Brush(() => SystemBrushes.Highlight, SystemColors.Highlight);
System\Drawing\SystemPensTest.cs (1)
29yield return Pen(() => SystemPens.Highlight, SystemColors.Highlight);
System.Windows.Forms (24)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (2)
67PaintBackground(e, r, IsHighContrastHighlighted() ? SystemColors.Highlight : backColor); 244PaintBackground(e, r, IsHighContrastHighlighted() ? SystemColors.Highlight : backColor);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (2)
27Control.PaintBackground(e, r, IsHighContrastHighlighted() ? SystemColors.Highlight : Control.BackColor, r.Location); 73Control.PaintBackground(e, r, IsHighContrastHighlighted() ? SystemColors.Highlight : Control.BackColor, r.Location);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
73Color color = isHighContrastHighlighted ? SystemColors.Highlight : Control.BackColor;
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
598backColor = SystemColors.Highlight;
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
28private static readonly Color s_defaultForeColor = SystemColors.Highlight;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
78private Color _selectedItemWithFocusBackColor = SystemColors.Highlight;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (1)
90Color backgroundColor = isHighContrastHighlighted ? SystemColors.Highlight : Control.BackColor;
System\Windows\Forms\Controls\ToolStrips\ProfessionalColorTable.cs (6)
116public virtual Color ButtonPressedHighlightBorder => SystemColors.Highlight; 122public virtual Color ButtonCheckedHighlightBorder => SystemColors.Highlight; 347GetAlphaBlendedColor(screen, SystemColors.Highlight, SystemColors.Window, 160), 352GetAlphaBlendedColor(screen, SystemColors.Highlight, SystemColors.Window, 80), 358rgbTable[KnownColors.ButtonPressedHighlight] = SystemColors.Highlight; 373Color highlight = SystemColors.Highlight;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (2)
571borderColor = SystemColors.Highlight; 628borderColor = SystemColors.Highlight;
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
835Color backgroundColor = e.Item.Selected ? SystemColors.Highlight : e.Item.BackColor;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (4)
462? SystemColors.Highlight 586ControlPaint.DrawBorderSimple(g, clientBounds, SystemColors.Highlight); 587using var brush = SystemColors.Highlight.GetCachedSolidBrushScope(); 663ControlPaint.DrawBorderSimple(g, bounds, SystemColors.Highlight);
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2847ControlPaint.DrawFocusRectangle(g, bounds, color, SystemColors.Highlight);
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (1)
118=> (State & DrawItemState.Selected) == DrawItemState.Selected ? SystemColors.Highlight : _backColor;
System.Windows.Forms.Design (7)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
583backColor = SystemColors.Highlight;
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
166_readOnlyTextBoxLabel.BackColor = SystemColors.Highlight;
System\Windows\Forms\Design\ComponentTray.cs (1)
1461c.BackColor = SystemColors.Highlight;
System\Windows\Forms\Design\DesignerUtils.cs (2)
22private static SolidBrush s_hoverBrush = new(Color.FromArgb(alpha: 50, SystemColors.Highlight)); 167s_hoverBrush = new SolidBrush(Color.FromArgb(50, SystemColors.Highlight));
System\Windows\Forms\Design\TabOrder.cs (2)
58_highlightPen = new Pen(SystemColors.Highlight); 276textColor = SystemColors.Highlight;
System.Windows.Forms.Tests (18)
System\Windows\Forms\DataGridViewTests.cs (1)
2340SelectionBackColor = SystemColors.Highlight,
System\Windows\Forms\DataGridViewTests.Rendering.cs (1)
125SelectionBackColor = SystemColors.Highlight,
System\Windows\Forms\DrawItemEventArgsTests.cs (3)
13yield return new object[] { null, Rectangle.Empty, -2, DrawItemState.None - 1, SystemColors.HighlightText, SystemColors.Highlight }; 15yield return new object[] { SystemFonts.DefaultFont, new Rectangle(-1, 2, -3, -4), 0, DrawItemState.Selected, SystemColors.HighlightText, SystemColors.Highlight }; 59Assert.Equal((state & DrawItemState.Selected) == DrawItemState.Selected ? SystemColors.Highlight : backColor, e.BackColor);
System\Windows\Forms\ProgressBarTests.cs (6)
63Assert.Equal(SystemColors.Highlight, control.ForeColor); 633Assert.Equal(SystemColors.Highlight, control.ForeColor); 649Assert.Equal(SystemColors.Highlight, control.ForeColor); 2563Assert.Equal(SystemColors.Highlight, control.ForeColor); 2568Assert.Equal(SystemColors.Highlight, control.ForeColor); 2572Assert.Equal(SystemColors.Highlight, control.ForeColor);
System\Windows\Forms\PropertyGridTests.cs (3)
140Assert.Equal(SystemColors.Highlight, control.SelectedItemWithFocusBackColor); 2456Assert.Equal(SystemColors.Highlight, control.SelectedItemWithFocusBackColor); 2472Assert.Equal(SystemColors.Highlight, control.SelectedItemWithFocusBackColor);
System\Windows\Forms\ToolStripButtonTests.Rendering.cs (4)
85State.Brush(SystemColors.Highlight, BRUSH_STYLE.BS_SOLID)), 111State.Brush(SystemColors.Highlight, BRUSH_STYLE.BS_SOLID)), 137State.Brush(SystemColors.Highlight, BRUSH_STYLE.BS_SOLID)), 164State.Brush(SystemColors.Highlight, BRUSH_STYLE.BS_SOLID)),
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
125_propertyGrid.SelectedItemWithFocusBackColor.Should().Be(SystemColors.Highlight);
WinFormsControlsTest (2)
DataGridViewTest.Designer.cs (2)
60dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; 78dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;