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