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,
48 references to BackColor
System.Windows.Forms (48)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1370get => (_isEnableVisualStyleBackgroundSet || (RawBackColor.IsEmpty && (BackColor == SystemColors.Control)))
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (4)
157if (Control.BackColor != SystemColors.Control && SystemInformation.HighContrast) 165ControlPaint.DrawBorderSimple(deviceContext, bounds, ControlPaint.Dark(Control.BackColor)); 422ControlPaint.DrawFocusRectangle(g, r, Control.ForeColor, Control.BackColor); 733new(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\CheckBoxModernAdapter.cs (8)
84bool hasTransparentBackColor = Control.BackColor.HasTransparency(); 88using var backBrush = Control.BackColor.GetCachedSolidBrushScope(); 97Control.BackColor); 99if (useExplicitBackColor && hasTransparentBackColor && Control.BackColor.A > 0) 101using var backBrush = Control.BackColor.GetCachedSolidBrushScope(); 133&& Control.BackColor.A == byte.MaxValue 134? Control.BackColor 135: Control.Parent?.BackColor ?? Control.BackColor;
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ButtonDarkModeAdapter.cs (5)
66: new ColorOptions(deviceContext, Control.ForeColor, Control.BackColor) 100: Control.BackColor != Forms.Control.DefaultBackColor; 107Control.BackColor); 150Color parentBackColor = Control.Parent?.BackColor ?? Control.BackColor; 212new(deviceContext, Control.ForeColor, Control.BackColor)
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ModernButtonColorMath.cs (2)
92if (owner.BackColor != Control.DefaultBackColor) 94return owner.BackColor;
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonModernAdapter.cs (8)
84bool hasTransparentBackColor = Control.BackColor.HasTransparency(); 88using var backBrush = Control.BackColor.GetCachedSolidBrushScope(); 97Control.BackColor); 99if (useExplicitBackColor && hasTransparentBackColor && Control.BackColor.A > 0) 101using var backBrush = Control.BackColor.GetCachedSolidBrushScope(); 133&& Control.BackColor.A == byte.MaxValue 134? Control.BackColor 135: Control.Parent?.BackColor ?? 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);
System\Windows\Forms\Rendering\Button\AnimatedPopupButtonRenderer.cs (4)
159SurfaceColor = button.Parent?.BackColor ?? button.BackColor, 191button.Parent?.BackColor ?? button.BackColor); 241: button.BackColor != Control.DefaultBackColor; 243? button.BackColor