19 overrides of BackColor
System.Windows.Forms (19)
System\Windows\Forms\ActiveX\AxHost.cs (1)
255
public override Color
BackColor
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
154
public override Color
BackColor
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
256
public override Color
BackColor
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
991
public override Color
BackColor
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
128
public override Color
BackColor
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
153
public override Color
BackColor
System\Windows\Forms\Controls\ListView\ListView.cs (1)
346
public override Color
BackColor
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
196
public override Color
BackColor
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
313
public override Color
BackColor
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
149
public override Color
BackColor
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
170
public override Color
BackColor
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
98
public override Color
BackColor
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
282
public override Color
BackColor
System\Windows\Forms\Controls\ToolStrips\ToolStripContentPanel.cs (1)
92
public override Color
BackColor
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
196
public override Color
BackColor
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
132
public override Color
BackColor
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1242
public override Color
BackColor
System\Windows\Forms\Form.cs (1)
587
public override Color
BackColor
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
76
public override Color
BackColor
210 writes to BackColor
Accessibility_Core_App (13)
CommonControl2.Designer.cs (1)
99
this.progressBar1.
BackColor
= System.Drawing.Color.Lime;
ContainerControls.Designer.cs (3)
122
this.flowLayoutPanel2.
BackColor
= System.Drawing.Color.White;
521
this.flowLayoutPanel1.
BackColor
= System.Drawing.Color.White;
705
this.flowLayoutPanel3.
BackColor
= System.Drawing.Color.White;
ContainerControls2.Designer.cs (9)
90
this.splitContainer1.Panel1.
BackColor
= System.Drawing.Color.Silver;
96
this.splitContainer1.Panel2.
BackColor
= System.Drawing.Color.Red;
137
this.tableLayoutPanel1.
BackColor
= System.Drawing.Color.Red;
270
this.flowLayoutPanel4.
BackColor
= System.Drawing.Color.Green;
289
this.groupBox5.
BackColor
= System.Drawing.Color.Green;
312
this.panel4.
BackColor
= System.Drawing.Color.Green;
337
this.splitContainer2.Panel1.
BackColor
= System.Drawing.Color.Green;
341
this.splitContainer2.Panel2.
BackColor
= System.Drawing.Color.Red;
402
this.tableLayoutPanel2.
BackColor
= System.Drawing.Color.Green;
DesignSurface (11)
MainForm.cs (8)
153
pnl.
BackColor
= Color.Aquamarine;
164
l1.
BackColor
= Color.Coral;
165
l2.
BackColor
= Color.LightGreen;
169
sct.
BackColor
= Color.White;
196
l1.
BackColor
= Color.Coral;
324
splitContainer.
BackColor
= Color.Red;
333
userControl.
BackColor
= Color.LightSkyBlue;
349
splitter.
BackColor
= Color.Green;
MainForm.Designer.cs (1)
74
this.splitContainer.Panel1.
BackColor
= System.Drawing.SystemColors.Window;
MainForm.MyScrollableControl.cs (1)
20
BackColor
= Color.Red;
MainForm.MyUserControl.cs (1)
23
BackColor
= Color.LightBlue;
DesignSurfaceExt (3)
DesignSurfaceExt.cs (3)
125
ctrl.
BackColor
= Color.LightGray;
135
ctrl.
BackColor
= Color.DarkGray;
145
ctrl.
BackColor
= Color.White;
PresentationUI (11)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (3)
482
this._iconPictureBox.
BackColor
= System.Drawing.Color.Transparent;
522
this._documentDetailBox.
BackColor
= System.Drawing.Color.Transparent;
646
this._fileSystemBox.
BackColor
= System.Drawing.Color.Transparent;
MS\Internal\Documents\RMEnrollmentPage1.Designer.cs (1)
167
_pictureBox.
BackColor
= System.Drawing.Color.SeaGreen;
MS\Internal\Documents\RMEnrollmentPage2.Designer.cs (3)
127
this._pictureBox1.
BackColor
= System.Drawing.Color.SeaGreen;
180
this._pictureBox2.
BackColor
= System.Drawing.Color.SeaGreen;
199
this._pictureBox4.
BackColor
= System.Drawing.Color.SeaGreen;
MS\Internal\Documents\RMPublishingDialog.Designer.cs (1)
118
this.groupBoxMainContent.
BackColor
= System.Drawing.Color.Transparent;
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (3)
137
_columnHeaderPanel.
BackColor
= System.Drawing.SystemColors.Control;
164
_listboxMainPanel.
BackColor
= System.Drawing.SystemColors.Info;
174
_listboxItemPanel.
BackColor
= System.Drawing.SystemColors.GradientActiveCaption;
System.Windows.Forms (37)
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (1)
136
control.
BackColor
= GetColorFromOleColor(value);
System\Windows\Forms\ActiveX\AxHost.cs (1)
258
set => base.
BackColor
= value;
System\Windows\Forms\Control.cs (1)
9068
BackColor
= Color.Empty;
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
177
base.
BackColor
= value;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
259
set => base.
BackColor
= value;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
994
set => base.
BackColor
= value;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
2702
_editingPanel.
BackColor
= dgvese.CellStyle.BackColor;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1262
DataGridView.EditingPanel.
BackColor
= dataGridViewCellStyle.SelectionBackColor;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.cs (1)
79
_dataGridView!.EditingPanel.
BackColor
= opaqueBackColor;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (1)
107
_dataGridView.EditingPanel.
BackColor
= opaqueBackColor;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
131
set => base.
BackColor
= value;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
166
set => base.
BackColor
= value;
System\Windows\Forms\Controls\ListView\ListView.cs (1)
351
base.
BackColor
= value;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
207
set => base.
BackColor
= value;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (5)
214
_helpPane.
BackColor
= SystemColors.Control;
318
base.
BackColor
= value;
430
_commandsPane.
BackColor
= value;
431
_commandsPane.Label.
BackColor
= value;
631
set => _helpPane.
BackColor
= value;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (1)
153
Label.
BackColor
= background;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
152
set => base.
BackColor
= value;
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
134
base.
BackColor
= value;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
299
set => base.
BackColor
= value;
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
615
BackColor
= Color.Transparent;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
368
set => base.
BackColor
= value;
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (1)
90
set => base.
BackColor
= value;
System\Windows\Forms\Controls\ToolStrips\ToolStripContentPanel.cs (2)
103
ParentInternal.
BackColor
= Color.Transparent;
106
base.
BackColor
= value;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
59
set => ControlInternal.
BackColor
= value;
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
201
base.
BackColor
= value;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
137
base.
BackColor
= value; // Don't remove this or you will break serialization.
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1245
set => base.
BackColor
= value;
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
194
BackColor
= SystemColors.ControlDark
System\Windows\Forms\Form.cs (1)
601
set => base.
BackColor
= value;
System\Windows\Forms\MDI\MDIClient.cs (1)
36
BackColor
= SystemColors.AppWorkspace;
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
293
public override void ResetBackColor() =>
BackColor
= SystemColors.AppWorkspace;
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
79
set => base.
BackColor
= value;
System.Windows.Forms.Design (41)
System\ComponentModel\Design\DesignerActionPanel.MethodLine.cs (1)
23
BackColor
= Color.Transparent,
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (2)
25
BackColor
= Color.Transparent,
33
BackColor
= Color.Transparent,
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (4)
26
BackColor
= Color.Transparent,
34
BackColor
= Color.Transparent,
166
_readOnlyTextBoxLabel.
BackColor
= SystemColors.Highlight;
172
_readOnlyTextBoxLabel.
BackColor
= SystemColors.Window;
System\ComponentModel\Design\DesignerActionPanel.TextLine.cs (1)
22
BackColor
= Color.Transparent,
System\Drawing\Design\ColorEditor.ColorPalette.cs (1)
70
BackColor
= SystemColors.Control;
System\Drawing\Design\ContentAlignmentEditor.ContentUI.cs (1)
110
BackColor
= SystemColors.Control;
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (2)
177
BackColor
= SystemColors.Window;
193
BackColor
= SystemColors.Control;
System\Windows\Forms\Design\BorderSidesEditor.BorderSidesEditorUI.cs (2)
94
_tableLayoutPanel.
BackColor
= SystemColors.Window;
152
_splitterLabel.
BackColor
= SystemColors.ControlDark;
System\Windows\Forms\Design\ComponentTray.cs (4)
156
BackColor
= styleColor;
1424
BackColor
= styleColor;
1428
ctl.
BackColor
= styleColor;
1461
c.
BackColor
= SystemColors.Highlight;
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
34
BackColor
= SystemColors.Control;
System\Windows\Forms\Design\DesignBindingPicker.cs (13)
143
BackColor
= SystemColors.ControlDark,
151
BackColor
= SystemColors.Window,
171
BackColor
= SystemColors.Window,
183
BackColor
= SystemColors.ControlDark,
190
BackColor
= SystemColors.Window,
270
BackColor
= SystemColors.ControlDark,
278
BackColor
= SystemColors.Window,
296
BackColor
= SystemColors.Window,
315
BackColor
= SystemColors.ControlDark,
322
BackColor
= SystemColors.Window,
344
BackColor
= SystemColors.Control;
1586
_helpTextCtrl.
BackColor
= SystemColors.Info;
1591
_helpTextCtrl.
BackColor
= SystemColors.Window;
System\Windows\Forms\Design\DesignerFrame.cs (3)
45
BackColor
= color;
270
_splitter.
BackColor
= color;
274
_splitter.
BackColor
= SystemColors.Control;
System\Windows\Forms\Design\DockEditor.DockUI.cs (2)
187
BackColor
= SystemColors.Control;
295
BackColor
= SystemColors.Control;
System\Windows\Forms\Design\DocumentDesigner.cs (2)
141
Control.
BackColor
= value;
679
Control.
BackColor
= SystemColors.Control;
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDown.cs (1)
50
BackColor
= Drawing.SystemColors.Control;
System\Windows\Forms\Design\ShortcutKeysEditor.cs (1)
30
BackColor
= SystemColors.Control
System.Windows.Forms.Tests (87)
System\Windows\Forms\Control.ActiveXImplTests.cs (2)
20
control.
BackColor
= Color.Bisque;
27
control.
BackColor
= Color.Honeydew;
System\Windows\Forms\ControlTests.ControlCollection.cs (8)
654
owner.
BackColor
= Color.Blue;
804
owner.
BackColor
= Color.Blue;
957
owner.
BackColor
= Color.Blue;
1030
owner.
BackColor
= Color.Blue;
2357
owner.
BackColor
= Color.Blue;
2501
owner.
BackColor
= Color.Blue;
2633
owner.
BackColor
= Color.Blue;
2697
owner.
BackColor
= Color.Blue;
System\Windows\Forms\ControlTests.Handlers.cs (14)
180
BackColor
= Color.Yellow
184
BackColor
= Color.YellowGreen
2807
child1.
BackColor
= backColor;
2809
child2.
BackColor
= backColor;
2907
child1.
BackColor
= backColor;
2909
child2.
BackColor
= backColor;
2984
child1.
BackColor
= Color.FromArgb(200, 50, 100, 150);
3276
control.
BackColor
= Color.FromArgb(254, 255, 255, 255);
3707
control.
BackColor
= Color.FromArgb(254, 255, 255, 255);
3860
control.
BackColor
= backColor;
3986
control.
BackColor
= backColor;
4032
control.
BackColor
= backColor;
4117
control.
BackColor
= backColor;
4227
BackColor
= Color.Red
System\Windows\Forms\ControlTests.Methods.cs (6)
4323
otherControl.
BackColor
= Color.FromArgb(100, 50, 100, 150);
4607
child1.
BackColor
= backColor;
4609
child2.
BackColor
= backColor;
4707
child1.
BackColor
= backColor;
4709
child2.
BackColor
= backColor;
6395
control.
BackColor
= Color.Black;
System\Windows\Forms\ControlTests.Properties.cs (37)
1231
BackColor
= value
1237
control.
BackColor
= value;
1248
BackColor
= Color.YellowGreen
1251
control.
BackColor
= value;
1256
control.
BackColor
= value;
1275
control.
BackColor
= value;
1280
control.
BackColor
= value;
1295
control.
BackColor
= value;
1302
control.
BackColor
= value;
1315
BackColor
= Color.Yellow
1319
BackColor
= Color.YellowGreen
1325
control.
BackColor
= value;
1332
control.
BackColor
= value;
1358
control.
BackColor
= value;
1366
control.
BackColor
= value;
1388
control.
BackColor
= Color.Red;
1393
control.
BackColor
= Color.Red;
1398
control.
BackColor
= Color.Empty;
1404
control.
BackColor
= Color.Red;
1423
control.
BackColor
= Color.Red;
1475
control.
BackColor
= Color.Red;
1484
control.
BackColor
= Color.Red;
1493
control.
BackColor
= Color.Empty;
1505
control.
BackColor
= Color.Red;
1519
BackColor
= Color.Yellow
1523
BackColor
= Color.YellowGreen
1555
control.
BackColor
= Color.Red;
1564
control.
BackColor
= Color.Red;
1573
control.
BackColor
= Color.Empty;
1585
control.
BackColor
= Color.Red;
1598
Assert.Throws<ArgumentException>(() => control.
BackColor
= Color.FromArgb(254, 1, 2, 3));
1608
control.
BackColor
= Color.Red;
1624
control.
BackColor
= Color.Red;
7061
control.
BackColor
= Color.FromArgb(254, 255, 255, 255);
7546
control.
BackColor
= Color.FromArgb(254, 255, 255, 255);
10957
BackColor
= Color.Green,
12493
control.
BackColor
= Color.FromArgb(254, 255, 255, 255);
System\Windows\Forms\MdiClientTests.cs (8)
96
BackColor
= value
102
control.
BackColor
= value;
121
control.
BackColor
= Color.Red;
126
control.
BackColor
= Color.Red;
131
control.
BackColor
= Color.Empty;
137
control.
BackColor
= Color.Red;
149
control.
BackColor
= Color.Red;
165
control.
BackColor
= Color.Red;
System\Windows\Forms\Printing\PrintPreviewControlTests.cs (2)
19
control.
BackColor
= Color.Green;
36
control.
BackColor
= Color.Green;
System\Windows\Forms\PropertyGridInternal\PropertyGridView.DropDownHolderTests.cs (1)
15
propertyGridView.
BackColor
= Color.Green;
System\Windows\Forms\RichTextBoxTests.cs (2)
686
control.
BackColor
= value;
694
control.
BackColor
= value;
System\Windows\Forms\ScrollableControlTests.cs (4)
1540
control.
BackColor
= backColor;
1689
control.
BackColor
= backColor;
1739
control.
BackColor
= backColor;
1833
control.
BackColor
= backColor;
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
636
BackColor
= Color.Blue
System\Windows\Forms\ToolStripControlHostTests.cs (2)
27
BackColor
= Color.Red,
546
c.
BackColor
= Color.Red;
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (1)
85
adapter.
BackColor
= wfColor;
WinFormsControlsTest (6)
Panels.Designer.cs (4)
50
this.tableLayoutPanel1.
BackColor
= System.Drawing.Color.FromArgb((int)(byte)128, (int)(byte)255, (int)(byte)128);
57
this.tableLayoutPanel2.
BackColor
= System.Drawing.Color.FromArgb((int)(byte)255, (int)(byte)255, (int)(byte)128);
65
this.tableLayoutPanel3.
BackColor
= System.Drawing.Color.FromArgb((int)(byte)128, (int)(byte)255, (int)(byte)255);
84
this.currentDPILabel1.
BackColor
= System.Drawing.Color.FromArgb((int)(byte)255, (int)(byte)128, (int)(byte)255);
Splitter.Designer.cs (2)
48
this.splitContainer1.Panel1.
BackColor
= System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
52
this.splitContainer1.Panel2.
BackColor
= System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
224 references to BackColor
DesignSurface (1)
MainForm.MyScrollableControl.cs (1)
35
graphics.Clear(
BackColor
);
System.Windows.Forms (61)
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (1)
131
get => GetOleColorFromColor(GetControl()?.
BackColor
?? default);
System\Windows\Forms\ActiveX\AxHost.cs (3)
257
get => base.
BackColor
;
2106
return GetOleColorFromColor(richParent.
BackColor
);
3331
qaContainer.colorBack = GetOleColorFromColor(parent.
BackColor
);
System\Windows\Forms\Control.cs (15)
687
if (ParentInternal is { } parent && parent.
BackColor
==
BackColor
)
695
Color color =
BackColor
;
785
c = parent.
BackColor
;
815
Color previous =
BackColor
;
817
if (!previous.Equals(
BackColor
))
1615
Color color =
BackColor
;
1631
color = control.
BackColor
;
2776
=> GetStyle(ControlStyles.SupportsTransparentBackColor) &&
BackColor
.A < 255;
2961
oldBackColor =
BackColor
;
2987
if (checkBackColor && !oldBackColor.Equals(
BackColor
))
4158
Color oldBackColor =
BackColor
;
4197
if (!oldBackColor.Equals(
BackColor
))
5785
PInvokeCore.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(
BackColor
));
8075
PaintBackground(e, rectangle,
BackColor
, Point.Empty);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
156
get => base.
BackColor
;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
258
get => ShouldSerializeBackColor() ? base.
BackColor
: SystemColors.Window;
3455
using var hbrush = new CreateBrushScope(ParentInternal?.
BackColor
?? SystemColors.Control);
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
993
get => base.
BackColor
;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
130
get => ShouldSerializeBackColor() ? base.
BackColor
: SystemColors.Window;
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (2)
430
Color textColor = Enabled ? ForeColor : TextRenderer.DisabledTextColor(
BackColor
);
664
Color backColor =
BackColor
;
System\Windows\Forms\Controls\Labels\Label.cs (2)
991
ControlPaint.DrawImageDisabled(g, image, loc.X, loc.Y,
BackColor
);
1306
Color disabledTextForeColor = TextRenderer.DisabledTextColor(
BackColor
);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (2)
1326
ControlPaint.DrawFocusRectangle(g, Rectangle.Ceiling(focusRectangle), ForeColor,
BackColor
);
1332
ControlPaint.DrawFocusRectangle(g, Rectangle.Ceiling(rect), ForeColor,
BackColor
);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
159
return base.
BackColor
;
System\Windows\Forms\Controls\ListView\ListView.cs (1)
348
get => ShouldSerializeBackColor() ? base.
BackColor
: SystemColors.Window;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
202
return base.
BackColor
;
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (3)
345
PInvokeCore.SendMessage(this, PInvoke.PBM_SETBKCOLOR, 0,
BackColor
.ToWin32());
604
PInvokeCore.SendMessage(this, PInvoke.PBM_SETBKCOLOR, (WPARAM)0, (LPARAM)
BackColor
);
700
PInvokeCore.SendMessage(this, PInvoke.PBM_SETBKCOLOR, 0,
BackColor
.ToWin32());
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (5)
315
get => base.
BackColor
;
427
get => _commandsPane.
BackColor
;
630
get => _helpPane.
BackColor
;
1974
ControlPaint.DrawReversibleLine(new Point(rc.X + i, rc.Y), new Point(rc.X + i, rc.Y + rc.Height), targetControl.
BackColor
);
1981
ControlPaint.DrawReversibleLine(new Point(rc.X, rc.Y + i), new Point(rc.X + rc.Width, rc.Y + i), targetControl.
BackColor
);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
151
get => base.
BackColor
;
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
102
Color color = base.
BackColor
;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
288
return base.
BackColor
;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
367
get => base.
BackColor
;
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (1)
89
get => base.
BackColor
;
System\Windows\Forms\Controls\ToolStrips\ToolStripContentPanel.cs (1)
94
get => base.
BackColor
;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
58
get => ControlInternal.
BackColor
;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
518
return parent.
BackColor
;
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
198
get => ShouldSerializeBackColor() ? base.
BackColor
: SystemColors.Window;
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1244
get => base.
BackColor
;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (4)
1030
using var brush =
BackColor
.GetCachedSolidBrushScope();
1346
if (
BackColor
== Color.Transparent)
1464
ControlPaint.DrawFocusRectangle(g, r, ForeColor,
BackColor
);
1561
using var solidBrush =
BackColor
.GetCachedSolidBrushScope();
System\Windows\Forms\MDI\MDIClient.cs (1)
318
internal override bool ShouldSerializeBackColor() =>
BackColor
!= SystemColors.AppWorkspace;
System\Windows\Forms\Printing\PrintPreviewControl.cs (3)
295
internal override bool ShouldSerializeBackColor() => !
BackColor
.Equals(SystemColors.AppWorkspace);
598
brushColor = parent.
BackColor
;
746
return (isHighContract && !ShouldSerializeBackColor()) ? SystemColors.ControlDarkDark :
BackColor
;
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
678
BackColor
,
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
78
get => base.
BackColor
;
System.Windows.Forms.Design (29)
System\Drawing\Design\ColorEditor.ColorPalette.cs (1)
360
using var brush =
BackColor
.GetCachedSolidBrushScope();
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (2)
937
Color backColor = primaryParent is not null ? primaryParent.
BackColor
: Color.Empty;
1030
using SolidBrush brush = new(primaryControl.
BackColor
);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
632
Color backColor = targetControl.Parent is not null ? targetControl.Parent.
BackColor
: Color.Empty;
System\Windows\Forms\Design\ComponentTray.cs (1)
1210
ControlPaint.DrawReversibleFrame(_mouseDragWorkspace,
BackColor
, FrameStyle.Dashed);
System\Windows\Forms\Design\DesignerUtils.cs (2)
396
if (control.
BackColor
== Color.Transparent)
428
if (control.
BackColor
== Color.Transparent)
System\Windows\Forms\Design\DocumentDesigner.cs (1)
131
return Control.
BackColor
;
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
440
var backColor = Control.
BackColor
;
System\Windows\Forms\Design\GroupBoxDesigner.cs (1)
82
ControlPaint.DrawGrid(pe.Graphics, rectangle, GridSize, control.
BackColor
);
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
345
backColor = comp.
BackColor
;
System\Windows\Forms\Design\PanelDesigner.cs (3)
72
Color penColor = Control.
BackColor
.GetBrightness() < .5 ?
73
ControlPaint.Light(Control.
BackColor
) :
74
ControlPaint.Dark(Control.
BackColor
);
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
2006
DesignerUtils.DrawFrame(_graphics, newRegion, _mouseDragFrame, Control.
BackColor
);
2043
ControlPaint.DrawGrid(pe.Graphics, paintRect, GridSize, control.
BackColor
);
System\Windows\Forms\Design\PictureBoxDesigner.cs (3)
38
if (ctl.
BackColor
.GetBrightness() < .5)
40
penColor = ControlPaint.Light(ctl.
BackColor
);
44
penColor = ControlPaint.Dark(ctl.
BackColor
);
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (1)
142
borderColor = parent.
BackColor
;
System\Windows\Forms\Design\SplitterDesigner.cs (1)
31
Color penColor = control.
BackColor
.GetBrightness() < .5 ? Color.White : Color.Black;
System\Windows\Forms\Design\SplitterPanelDesigner.cs (4)
149
Color penColor = control.
BackColor
.GetBrightness() < .5 ? ControlPaint.Light(control.
BackColor
) : ControlPaint.Dark(control.
BackColor
);
168
using Pen pen = new(control.
BackColor
)
System\Windows\Forms\Design\TabOrder.cs (1)
215
Color backColor = hoverParent.
BackColor
;
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (3)
46
Color penColor = Control.
BackColor
.GetBrightness() < .5 ?
47
ControlPaint.Light(Control.
BackColor
) :
48
ControlPaint.Dark(Control.
BackColor
);
System.Windows.Forms.Design.Tests (2)
System\ComponentModel\Design\ByteViewerTests.cs (1)
29
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
System\Windows\Forms\Design\InheritedPropertyDescriptorTests.cs (1)
47
InheritedPropertyDescriptor inheritedPropertyDescriptor = control.GetInheritedPropertyDescriptor(nameof(Control.
BackColor
));
System.Windows.Forms.Tests (127)
System\Windows\Forms\ContainerControlTests.cs (1)
35
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
System\Windows\Forms\Control.ActiveXImplTests.cs (1)
32
Assert.Equal(Color.Bisque, control.
BackColor
);
System\Windows\Forms\ControlTests.ControlCollection.cs (12)
575
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
619
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
655
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
764
Assert.Equal(Color.Blue, control.
BackColor
);
805
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
923
Assert.Equal(Color.Blue, control.
BackColor
);
2272
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
2319
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
2358
Assert.Equal(Color.Blue, control.
BackColor
);
2463
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
2502
Assert.Equal(Color.Blue, control.
BackColor
);
2596
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
System\Windows\Forms\ControlTests.cs (5)
24
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
113
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
209
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
305
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
401
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
System\Windows\Forms\ControlTests.Methods.cs (3)
6392
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
6397
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
6401
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
System\Windows\Forms\ControlTests.Properties.cs (64)
1233
Assert.Equal(expected, control.
BackColor
);
1238
Assert.Equal(expected, control.
BackColor
);
1252
Assert.Equal(expected, control.
BackColor
);
1257
Assert.Equal(expected, control.
BackColor
);
1276
Assert.Equal(expected, control.
BackColor
);
1281
Assert.Equal(expected, control.
BackColor
);
1296
Assert.Equal(expected, control.
BackColor
);
1297
Assert.Equal(expected, child1.
BackColor
);
1298
Assert.Equal(expected, child2.
BackColor
);
1303
Assert.Equal(expected, control.
BackColor
);
1304
Assert.Equal(expected, child1.
BackColor
);
1305
Assert.Equal(expected, child2.
BackColor
);
1326
Assert.Equal(expected, control.
BackColor
);
1327
Assert.Equal(Color.Yellow, child1.
BackColor
);
1328
Assert.Equal(Color.YellowGreen, child2.
BackColor
);
1333
Assert.Equal(expected, control.
BackColor
);
1334
Assert.Equal(Color.Yellow, child1.
BackColor
);
1335
Assert.Equal(Color.YellowGreen, child2.
BackColor
);
1359
Assert.Equal(expected, control.
BackColor
);
1367
Assert.Equal(expected, control.
BackColor
);
1389
Assert.Equal(Color.Red, control.
BackColor
);
1394
Assert.Equal(Color.Red, control.
BackColor
);
1399
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
1405
Assert.Equal(Color.Red, control.
BackColor
);
1424
Assert.Equal(Color.Red, control.
BackColor
);
1476
Assert.Equal(Color.Red, control.
BackColor
);
1477
Assert.Equal(Color.Red, child1.
BackColor
);
1478
Assert.Equal(Color.Red, child2.
BackColor
);
1485
Assert.Equal(Color.Red, control.
BackColor
);
1486
Assert.Equal(Color.Red, child1.
BackColor
);
1487
Assert.Equal(Color.Red, child2.
BackColor
);
1494
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
1495
Assert.Equal(Control.DefaultBackColor, child1.
BackColor
);
1496
Assert.Equal(Control.DefaultBackColor, child2.
BackColor
);
1506
Assert.Equal(Color.Red, control.
BackColor
);
1507
Assert.Equal(Color.Red, child1.
BackColor
);
1508
Assert.Equal(Color.Red, child2.
BackColor
);
1556
Assert.Equal(Color.Red, control.
BackColor
);
1557
Assert.Equal(Color.Yellow, child1.
BackColor
);
1558
Assert.Equal(Color.YellowGreen, child2.
BackColor
);
1565
Assert.Equal(Color.Red, control.
BackColor
);
1566
Assert.Equal(Color.Yellow, child1.
BackColor
);
1567
Assert.Equal(Color.YellowGreen, child2.
BackColor
);
1574
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
1575
Assert.Equal(Color.Yellow, child1.
BackColor
);
1576
Assert.Equal(Color.YellowGreen, child2.
BackColor
);
1586
Assert.Equal(Color.Red, control.
BackColor
);
1587
Assert.Equal(Color.Yellow, child1.
BackColor
);
1588
Assert.Equal(Color.YellowGreen, child2.
BackColor
);
1604
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.
BackColor
)];
1609
Assert.Equal(Color.Red, control.
BackColor
);
1613
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
1620
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.
BackColor
)];
1625
Assert.Equal(Color.Red, control.
BackColor
);
1629
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
10811
Assert.Equal(Color.Blue, control.
BackColor
);
10827
Assert.Equal(Color.Blue, control.
BackColor
);
10843
Assert.Equal(Color.Blue, control.
BackColor
);
10859
Assert.Equal(Color.Red, control.
BackColor
);
10875
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
10993
Assert.Equal(Color.Green, control.
BackColor
);
11009
Assert.Equal(Color.Green, control.
BackColor
);
11025
Assert.Equal(Color.Green, control.
BackColor
);
11041
Assert.Equal(Color.Green, control.
BackColor
);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
957
Assert.Equal(expectedEditingPanelBackColor, dataGridView.EditingPanel.
BackColor
);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
30
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
29
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
System\Windows\Forms\GroupBoxTests.cs (1)
27
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
System\Windows\Forms\LabelTests.cs (1)
26
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
System\Windows\Forms\ListControlTests.cs (1)
28
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
System\Windows\Forms\MdiClientTests.cs (13)
26
Assert.Equal(SystemColors.AppWorkspace, control.
BackColor
);
98
Assert.Equal(expected, control.
BackColor
);
103
Assert.Equal(expected, control.
BackColor
);
122
Assert.Equal(Color.Red, control.
BackColor
);
127
Assert.Equal(Color.Red, control.
BackColor
);
132
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
138
Assert.Equal(Color.Red, control.
BackColor
);
145
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(MdiClient))[nameof(MdiClient.
BackColor
)];
150
Assert.Equal(Color.Red, control.
BackColor
);
154
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
161
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(MdiClient))[nameof(MdiClient.
BackColor
)];
166
Assert.Equal(Color.Red, control.
BackColor
);
170
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
System\Windows\Forms\PanelTests.cs (1)
30
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
System\Windows\Forms\PictureBoxTests.cs (1)
29
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
System\Windows\Forms\ProgressBarTests.cs (1)
26
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
System\Windows\Forms\RichTextBoxTests.cs (2)
687
Assert.Equal(expected, control.
BackColor
);
695
Assert.Equal(expected, control.
BackColor
);
System\Windows\Forms\ScrollableControlTests.cs (1)
30
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
System\Windows\Forms\SplitterPanelTests.cs (1)
36
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
System\Windows\Forms\SplitterTests.cs (1)
25
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
System\Windows\Forms\StatusStripTests.cs (1)
1187
Assert.Equal(Color.Transparent, grip.
BackColor
);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
31
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
System\Windows\Forms\ToolStripContentPanelTests.cs (2)
644
Assert.Equal(Color.Blue, parent.
BackColor
);
650
Assert.Equal(Color.Blue, parent.
BackColor
);
System\Windows\Forms\ToolStripControlHostTests.cs (7)
60
Assert.Equal(c.
BackColor
, item.BackColor);
272
Assert.Equal(expected, c.
BackColor
);
278
Assert.Equal(expected, c.
BackColor
);
547
Assert.Equal(Color.Red, c.
BackColor
);
4394
Assert.Equal(Control.DefaultBackColor, c.
BackColor
);
4400
Assert.Equal(Control.DefaultBackColor, c.
BackColor
);
4405
Assert.Equal(Control.DefaultBackColor, c.
BackColor
);
System\Windows\Forms\ToolStripPanelTests.cs (1)
31
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
System\Windows\Forms\UserControlTests.cs (1)
35
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
TrackBarTests.cs (1)
27
Assert.Equal(Control.DefaultBackColor, control.
BackColor
);
WindowsFormsIntegration (4)
System\Windows\Integration\ElementHost.cs (4)
924
OnPropertyChanged("BackColor", this.
BackColor
);
1548
if (control.
BackColor
!= SD.Color.Empty && control.
BackColor
.A == 255)
1550
return control.
BackColor
;