39 references to Highlight
System.Drawing.Common (2)
System\Drawing\SystemBrushes.cs (1)
32
public static Brush Highlight => FromSystemColor(SystemColors.
Highlight
);
System\Drawing\SystemPens.cs (1)
33
public static Pen Highlight => FromSystemColor(SystemColors.
Highlight
);
System.Windows.Forms (30)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (2)
67
PaintBackground(e, r, IsHighContrastHighlighted() ? SystemColors.
Highlight
: backColor);
236
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 (2)
28
private static readonly Color s_defaultForeColor = SystemColors.
Highlight
;
91
ForeColor = SystemColors.
Highlight
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
80
private Color _selectedItemWithFocusBackColor = SystemColors.
Highlight
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (1)
91
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)
570
borderColor = SystemColors.
Highlight
;
627
borderColor = SystemColors.
Highlight
;
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
868
Color backgroundColor = e.Item.Selected ? SystemColors.
Highlight
: e.Item.BackColor;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemDarkModeRenderer.cs (5)
52
Color c when c == SystemColors.
Highlight
=> Color.FromArgb(0, 120, 215),
239
using var highlightBrush = GetDarkModeBrush(SystemColors.
Highlight
);
293
: GetDarkModeBrush(SystemColors.
Highlight
);
328
: GetDarkModeBrush(SystemColors.
Highlight
);
436
: GetDarkModeColor(SystemColors.
Highlight
).GetCachedSolidBrushScope();
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (4)
515
? SystemColors.
Highlight
643
ControlPaint.DrawBorderSimple(g, clientBounds, SystemColors.
Highlight
);
644
using var brush = SystemColors.
Highlight
.GetCachedSolidBrushScope();
722
ControlPaint.DrawBorderSimple(g, bounds, SystemColors.
Highlight
);
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2834
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)
597
backColor = SystemColors.
Highlight
;
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
166
_readOnlyTextBoxLabel.BackColor = SystemColors.
Highlight
;
System\Windows\Forms\Design\ComponentTray.cs (1)
1446
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
);
273
textColor = SystemColors.
Highlight
;