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