125 references to DefaultBackColor
System.Windows.Forms (4)
System\Windows\Forms\Control.cs (1)
805
return !c.IsEmpty && IsValidBackColor(c) ? c :
DefaultBackColor
;
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
104
if (color !=
DefaultBackColor
)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
521
return Control.
DefaultBackColor
;
System\Windows\Forms\Form.cs (1)
599
return
DefaultBackColor
;
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
29
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
System.Windows.Forms.Tests (119)
System\Windows\Forms\AxHostTests.cs (2)
37
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
131
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
System\Windows\Forms\ButtonBaseTests.cs (3)
29
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
695
yield return new object[] { Color.Empty, Control.
DefaultBackColor
, 1 };
752
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
System\Windows\Forms\ButtonTests.cs (1)
31
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
System\Windows\Forms\CheckBoxTests.cs (1)
30
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
System\Windows\Forms\ContainerControlTests.cs (1)
35
Assert.Equal(Control.
DefaultBackColor
, 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);
805
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
958
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
1031
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
2272
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
2319
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
2463
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
2596
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
2669
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
2747
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
System\Windows\Forms\ControlTests.cs (6)
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);
481
Assert.Equal(SystemColors.Control, Control.
DefaultBackColor
);
System\Windows\Forms\ControlTests.Methods.cs (3)
6383
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
6388
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
6392
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
System\Windows\Forms\ControlTests.Properties.cs (10)
1265
yield return new object[] { Color.Empty, Control.
DefaultBackColor
};
1342
yield return new object[] { Color.Empty, Control.
DefaultBackColor
, 0 };
1399
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
1494
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
1495
Assert.Equal(Control.
DefaultBackColor
, child1.BackColor);
1496
Assert.Equal(Control.
DefaultBackColor
, child2.BackColor);
1574
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
1613
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
1629
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
10875
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
42
Assert.Equal(Control.
DefaultBackColor
, control.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\FormTests.cs (1)
40
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
System\Windows\Forms\GroupBoxTests.cs (1)
27
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
System\Windows\Forms\HScrollBarTests.cs (1)
24
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 (3)
132
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
154
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
170
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
System\Windows\Forms\MdiControlStripTests.cs (1)
32
Assert.Equal(Control.
DefaultBackColor
, mdiControlStrip.BackColor);
System\Windows\Forms\MenuStripTests.cs (1)
30
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\PropertyGridTests.cs (5)
40
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
304
yield return new object[] { Color.Empty, Control.
DefaultBackColor
, 0 };
365
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
387
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
403
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
System\Windows\Forms\RadioButtonTests.cs (1)
30
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
System\Windows\Forms\RichTextBoxTests.cs (1)
669
yield return new object[] { Color.Empty, Control.
DefaultBackColor
, 0 };
System\Windows\Forms\ScrollableControlTests.cs (1)
30
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
System\Windows\Forms\ScrollBarTests.cs (2)
25
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
234
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)
30
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
System\Windows\Forms\TabControlTests.cs (1)
28
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
31
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
System\Windows\Forms\TabPageTests.cs (13)
34
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
143
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
534
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
552
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
581
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
603
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
609
yield return new object[] { true, TabAppearance.Buttons, Control.
DefaultBackColor
};
610
yield return new object[] { true, TabAppearance.FlatButtons, Control.
DefaultBackColor
};
612
yield return new object[] { false, TabAppearance.Buttons, Control.
DefaultBackColor
};
613
yield return new object[] { false, TabAppearance.FlatButtons, Control.
DefaultBackColor
};
614
yield return new object[] { false, TabAppearance.Normal, Control.
DefaultBackColor
};
827
yield return new object[] { Color.Empty, Control.
DefaultBackColor
, 0 };
884
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
System\Windows\Forms\ToolStripButtonTests.cs (4)
30
Assert.Equal(Control.
DefaultBackColor
, item.BackColor);
111
Assert.Equal(Control.
DefaultBackColor
, item.BackColor);
198
Assert.Equal(Control.
DefaultBackColor
, item.BackColor);
288
Assert.Equal(Control.
DefaultBackColor
, item.BackColor);
System\Windows\Forms\ToolStripContentPanelTests.cs (2)
32
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
710
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
System\Windows\Forms\ToolStripControlHostTests.cs (9)
308
Assert.Equal(Control.
DefaultBackColor
, item.BackColor);
341
Assert.Equal(Control.
DefaultBackColor
, item.BackColor);
372
Assert.Equal(Control.
DefaultBackColor
, item.BackColor);
4393
Assert.Equal(Control.
DefaultBackColor
, item.BackColor);
4394
Assert.Equal(Control.
DefaultBackColor
, c.BackColor);
4399
Assert.Equal(Control.
DefaultBackColor
, item.BackColor);
4400
Assert.Equal(Control.
DefaultBackColor
, c.BackColor);
4404
Assert.Equal(Control.
DefaultBackColor
, item.BackColor);
4405
Assert.Equal(Control.
DefaultBackColor
, c.BackColor);
System\Windows\Forms\ToolStripDropDownItemTests.cs (1)
29
Assert.Equal(Control.
DefaultBackColor
, item.BackColor);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
34
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
System\Windows\Forms\ToolStripItemTests.cs (9)
32
Assert.Equal(Control.
DefaultBackColor
, item.BackColor);
1554
Assert.Equal(Control.
DefaultBackColor
, item.BackColor);
1661
yield return new object[] { Color.Empty, Control.
DefaultBackColor
, 0 };
1723
Assert.Equal(Control.
DefaultBackColor
, item.BackColor);
1745
Assert.Equal(Control.
DefaultBackColor
, item.BackColor);
1761
Assert.Equal(Control.
DefaultBackColor
, item.BackColor);
14083
Assert.Equal(Control.
DefaultBackColor
, item.BackColor);
14088
Assert.Equal(Control.
DefaultBackColor
, item.BackColor);
14092
Assert.Equal(Control.
DefaultBackColor
, item.BackColor);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
30
Assert.Equal(Control.
DefaultBackColor
, item.BackColor);
System\Windows\Forms\ToolStripPanelTests.cs (1)
31
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
30
Assert.Equal(Control.
DefaultBackColor
, item.BackColor);
System\Windows\Forms\ToolStripTests.cs (3)
34
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
192
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
1059
yield return new object[] { Color.Empty, Control.
DefaultBackColor
};
System\Windows\Forms\UserControlTests.cs (1)
35
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
System\Windows\Forms\VScrollBarTests.cs (1)
23
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
System\Windows\Forms\WebBrowserTests.cs (1)
26
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
TrackBarTests.cs (1)
27
Assert.Equal(Control.
DefaultBackColor
, control.BackColor);
System.Windows.Forms.TestUtilities (1)
CommonTestHelperEx.cs (1)
18
{ Color.Empty, Control.
DefaultBackColor
}