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