Base:
property
BackColor
System.Windows.Forms.Control.BackColor
3 writes to BackColor
System.Windows.Forms (2)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
220_dropDownButton.BackColor = SystemColors.Control; 261BackColor = SystemColors.Control,
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerActionPanel.CheckBoxPropertyLine.cs (1)
20BackColor = Color.Transparent,
28 references to BackColor
System.Windows.Forms (28)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1327get => (_isEnableVisualStyleBackgroundSet || (RawBackColor.IsEmpty && (BackColor == SystemColors.Control)))
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (4)
107if (Control.BackColor != SystemColors.Control && SystemInformation.HighContrast) 115ControlPaint.DrawBorderSimple(deviceContext, bounds, ControlPaint.Dark(Control.BackColor)); 372ControlPaint.DrawFocusRectangle(g, r, Control.ForeColor, Control.BackColor); 658new(deviceContext, Control.ForeColor, Control.BackColor)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (2)
40Color backColor = Control.BackColor; 133Color backColor = Control.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\Buttons\ButtonInternal\DarkMode\ButtonDarkModeAdapter.cs (7)
34textColor = new ColorOptions(deviceContext, Control.ForeColor, Control.BackColor) 56if (Control.BackColor != Forms.Control.DefaultBackColor) 58backColor = Control.BackColor; 93Control.Parent?.BackColor ?? Control.BackColor, 131Control.Parent?.BackColor ?? Control.BackColor, 169Control.Parent?.BackColor ?? Control.BackColor, 200new(deviceContext, Control.ForeColor, Control.BackColor)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (1)
163BackColor);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (10)
18if (Control.BackColor != SystemColors.Control && SystemInformation.HighContrast) 22Color c = ControlPaint.LightLight(Control.BackColor); 32ControlPaint.DrawBorderSimple(e, r, ControlPaint.Dark(Control.BackColor)); 39Color c = ControlPaint.Light(Control.BackColor); 44Control.BackColor, 2, ButtonBorderStyle.Outset, 45Control.BackColor, 2, ButtonBorderStyle.Outset); 51c = ControlPaint.LightLight(Control.BackColor); 61ControlPaint.DrawBorderSimple(e, r, ControlPaint.Dark(Control.BackColor)); 91Color backgroundColor = isHighContrastHighlighted ? SystemColors.Highlight : Control.BackColor; 94using Image invertedImage = ControlPaint.CreateBitmapWithInvertedForeColor(bitmap, Control.BackColor);