20 overrides of BackgroundImage
System.Windows.Forms (20)
System\Windows\Forms\ActiveX\AxHost.cs (1)
264
public override Image?
BackgroundImage
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
264
public override Image?
BackgroundImage
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
1038
public override Image?
BackgroundImage
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
144
public override Image?
BackgroundImage
System\Windows\Forms\Controls\Labels\Label.cs (1)
172
public override Image?
BackgroundImage
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
171
public override Image?
BackgroundImage
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
213
public override Image?
BackgroundImage
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
102
public override Image?
BackgroundImage
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
326
public override Image?
BackgroundImage
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
126
public override Image?
BackgroundImage
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
194
public override Image?
BackgroundImage
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
304
public override Image?
BackgroundImage
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
117
public override Image?
BackgroundImage
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
216
public override Image?
BackgroundImage
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
146
public override Image?
BackgroundImage
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1297
public override Image?
BackgroundImage
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
197
public override Image?
BackgroundImage
System\Windows\Forms\MDI\MDIClient.cs (1)
47
public override Image?
BackgroundImage
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
451
public override Image?
BackgroundImage
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
92
public override Image?
BackgroundImage
85 writes to BackgroundImage
System.Windows.Forms (21)
System\Windows\Forms\ActiveX\AxHost.cs (1)
267
set => base.
BackgroundImage
= value;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
267
set => base.
BackgroundImage
= value;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
1041
set => base.
BackgroundImage
= value;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
147
set => base.
BackgroundImage
= value;
System\Windows\Forms\Controls\Labels\Label.cs (1)
175
set => base.
BackgroundImage
= value;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
174
set => base.
BackgroundImage
= value;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
216
set => base.
BackgroundImage
= value;
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
105
set => base.
BackgroundImage
= value;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
329
set => base.
BackgroundImage
= value;
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
129
set => base.
BackgroundImage
= value;
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
197
set => base.
BackgroundImage
= value;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
307
set => base.
BackgroundImage
= value;
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (1)
108
set => base.
BackgroundImage
= value;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
72
set => ControlInternal.
BackgroundImage
= value;
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
120
set => base.
BackgroundImage
= value;
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
219
set => base.
BackgroundImage
= value;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
149
set => base.
BackgroundImage
= value;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
200
set => base.
BackgroundImage
= value;
System\Windows\Forms\MDI\MDIClient.cs (1)
59
set => base.
BackgroundImage
= value;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
454
set => base.
BackgroundImage
= value;
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
95
set => base.
BackgroundImage
= value;
System.Windows.Forms.Tests (62)
System\Windows\Forms\ControlTests.Handlers.cs (7)
379
BackgroundImage
= new Bitmap(10, 10)
383
BackgroundImage
= new Bitmap(10, 10)
3861
control.
BackgroundImage
= backgroundImage;
3987
control.
BackgroundImage
= backgroundImage;
4033
control.
BackgroundImage
= backgroundImage;
4118
control.
BackgroundImage
= backgroundImage;
4280
BackgroundImage
= image
System\Windows\Forms\ControlTests.Properties.cs (29)
1639
BackgroundImage
= value
1645
control.
BackgroundImage
= value;
1669
control.
BackgroundImage
= value;
1677
control.
BackgroundImage
= value;
1695
control.
BackgroundImage
= value;
1701
control.
BackgroundImage
= value;
1715
BackgroundImage
= image1
1719
BackgroundImage
= image2
1725
control.
BackgroundImage
= value;
1731
control.
BackgroundImage
= value;
1752
control.
BackgroundImage
= image1;
1757
control.
BackgroundImage
= image1;
1763
control.
BackgroundImage
= image2;
1768
control.
BackgroundImage
= null;
1774
control.
BackgroundImage
= image1;
1794
control.
BackgroundImage
= value;
1841
control.
BackgroundImage
= image1;
1850
control.
BackgroundImage
= image1;
1860
control.
BackgroundImage
= image2;
1869
control.
BackgroundImage
= null;
1881
control.
BackgroundImage
= image1;
1897
BackgroundImage
= childBackgroundImage1
1901
BackgroundImage
= childBackgroundImage2
1934
control.
BackgroundImage
= image1;
1943
control.
BackgroundImage
= image1;
1953
control.
BackgroundImage
= image2;
1962
control.
BackgroundImage
= null;
1974
control.
BackgroundImage
= image1;
2058
BackgroundImage
= backgroundImage,
System\Windows\Forms\ListViewTests.cs (2)
643
BackgroundImage
= new Bitmap(10, 10),
703
BackgroundImage
= new Bitmap(10, 10)
System\Windows\Forms\MdiClientTests.cs (1)
181
BackgroundImage
= parentBackgroundImage
System\Windows\Forms\ScrollableControlTests.cs (4)
1541
control.
BackgroundImage
= backgroundImage;
1690
control.
BackgroundImage
= backgroundImage;
1740
control.
BackgroundImage
= backgroundImage;
1834
control.
BackgroundImage
= backgroundImage;
System\Windows\Forms\TabPageTests.cs (4)
3983
control.
BackgroundImage
= backgroundImage;
4063
control.
BackgroundImage
= backgroundImage;
4109
control.
BackgroundImage
= backgroundImage;
4202
control.
BackgroundImage
= backgroundImage;
System\Windows\Forms\ToolStripControlHostTests.cs (2)
28
BackgroundImage
= new Bitmap(10, 10),
559
c.
BackgroundImage
= backgroundImage;
System\Windows\Forms\ToolStripDropDownTests.cs (7)
798
BackgroundImage
= value
804
control.
BackgroundImage
= value;
824
control.
BackgroundImage
= image1;
829
control.
BackgroundImage
= image1;
835
control.
BackgroundImage
= image2;
840
control.
BackgroundImage
= null;
846
control.
BackgroundImage
= image1;
System\Windows\Forms\ToolStripTests.cs (4)
5882
control.
BackgroundImage
= backgroundImage;
6031
control.
BackgroundImage
= backgroundImage;
6080
control.
BackgroundImage
= backgroundImage;
6173
control.
BackgroundImage
= backgroundImage;
System\Windows\Forms\UserControlTests.cs (2)
1097
BackgroundImage
= backgroundImage
1195
BackgroundImage
= backgroundImage
WindowsFormsIntegration (2)
System\Windows\Integration\HostUtils.cs (2)
149
child.
BackgroundImage
= image;
151
adapter.
BackgroundImage
= image;
145 references to BackgroundImage
System.Windows.Forms (43)
System\Windows\Forms\ActiveX\AxHost.cs (1)
266
get => base.
BackgroundImage
;
System\Windows\Forms\Control.cs (5)
844
if (
BackgroundImage
== value)
887
if (ControlPaint.IsImageTransparent(
BackgroundImage
))
8093
if (
BackgroundImage
is not null && !DisplayInformation.HighContrast && !formRTL)
8095
bool imageIsTransparent = ControlPaint.IsImageTransparent(
BackgroundImage
);
8114
BackgroundImage
,
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (2)
92
if (Control.
BackgroundImage
is not null && !DisplayInformation.HighContrast)
96
Control.
BackgroundImage
,
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
266
get => base.
BackgroundImage
;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
1040
get => base.
BackgroundImage
;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
146
get => base.
BackgroundImage
;
System\Windows\Forms\Controls\Labels\Label.cs (1)
174
get => base.
BackgroundImage
;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
173
get => base.
BackgroundImage
;
System\Windows\Forms\Controls\ListView\ListView.cs (4)
389
if (IsHandleCreated &&
BackgroundImage
is not null)
2560
if (
BackgroundImage
is not null)
5121
if (
BackgroundImage
is not null)
5126
BackgroundImage
.Save(_backgroundImageFileName, Drawing.Imaging.ImageFormat.Bmp);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
215
get => base.
BackgroundImage
;
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
1165
||
BackgroundImage
is not null)
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
104
get => base.
BackgroundImage
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
328
get => base.
BackgroundImage
;
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
128
get => base.
BackgroundImage
;
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
196
get => base.
BackgroundImage
;
System\Windows\Forms\Controls\TabControl\TabPage.cs (2)
626
if (
BackgroundImage
is not null)
630
BackgroundImage
,
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
306
get => base.
BackgroundImage
;
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (1)
107
get => base.
BackgroundImage
;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
71
get => ControlInternal.
BackgroundImage
;
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
1023
return (control.RawBackColor == Color.Empty && control.
BackgroundImage
is null);
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
119
get => base.
BackgroundImage
;
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
218
get => base.
BackgroundImage
;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
148
get => base.
BackgroundImage
;
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1299
get => base.
BackgroundImage
;
System\Windows\Forms\Form.cs (1)
3964
MdiClient.BackgroundImage =
BackgroundImage
;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
199
get => base.
BackgroundImage
;
System\Windows\Forms\MDI\MDIClient.cs (2)
51
Image? result = base.
BackgroundImage
;
54
result = ParentInternal.
BackgroundImage
;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
453
get => base.
BackgroundImage
;
System\Windows\Forms\Scrolling\ScrollableControl.cs (3)
667
BackgroundImage
is not null &&
670
if (ControlPaint.IsImageTransparent(
BackgroundImage
))
677
BackgroundImage
,
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
94
get => base.
BackgroundImage
;
System\Windows\Forms\UserControl.cs (1)
285
if (
BackgroundImage
is not null)
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
30
Assert.Null(control.
BackgroundImage
);
System.Windows.Forms.Tests (95)
System\Windows\Forms\ButtonBaseTests.cs (1)
30
Assert.Null(control.
BackgroundImage
);
System\Windows\Forms\ButtonTests.cs (1)
32
Assert.Null(control.
BackgroundImage
);
System\Windows\Forms\CheckBoxTests.cs (1)
31
Assert.Null(control.
BackgroundImage
);
System\Windows\Forms\ContainerControlTests.cs (1)
36
Assert.Null(control.
BackgroundImage
);
System\Windows\Forms\ControlTests.cs (5)
25
Assert.Null(control.
BackgroundImage
);
114
Assert.Null(control.
BackgroundImage
);
210
Assert.Null(control.
BackgroundImage
);
306
Assert.Null(control.
BackgroundImage
);
402
Assert.Null(control.
BackgroundImage
);
System\Windows\Forms\ControlTests.Properties.cs (52)
1641
Assert.Same(value, control.
BackgroundImage
);
1646
Assert.Same(value, control.
BackgroundImage
);
1670
Assert.Same(value, control.
BackgroundImage
);
1678
Assert.Same(value, control.
BackgroundImage
);
1696
Assert.Same(value, control.
BackgroundImage
);
1697
Assert.Null(child1.
BackgroundImage
);
1698
Assert.Null(child2.
BackgroundImage
);
1702
Assert.Same(value, control.
BackgroundImage
);
1703
Assert.Null(child1.
BackgroundImage
);
1704
Assert.Null(child2.
BackgroundImage
);
1726
Assert.Same(value, control.
BackgroundImage
);
1727
Assert.Same(image1, child1.
BackgroundImage
);
1728
Assert.Same(image2, child2.
BackgroundImage
);
1732
Assert.Same(value, control.
BackgroundImage
);
1733
Assert.Same(image1, child1.
BackgroundImage
);
1734
Assert.Same(image2, child2.
BackgroundImage
);
1753
Assert.Same(image1, control.
BackgroundImage
);
1758
Assert.Same(image1, control.
BackgroundImage
);
1764
Assert.Same(image2, control.
BackgroundImage
);
1769
Assert.Null(control.
BackgroundImage
);
1775
Assert.Same(image1, control.
BackgroundImage
);
1795
Assert.Same(value, control.
BackgroundImage
);
1842
Assert.Same(image1, control.
BackgroundImage
);
1843
Assert.Null(child1.
BackgroundImage
);
1844
Assert.Null(child2.
BackgroundImage
);
1851
Assert.Same(image1, control.
BackgroundImage
);
1852
Assert.Null(child1.
BackgroundImage
);
1853
Assert.Null(child2.
BackgroundImage
);
1861
Assert.Same(image2, control.
BackgroundImage
);
1862
Assert.Null(child1.
BackgroundImage
);
1863
Assert.Null(child2.
BackgroundImage
);
1870
Assert.Null(control.
BackgroundImage
);
1871
Assert.Null(child1.
BackgroundImage
);
1872
Assert.Null(child2.
BackgroundImage
);
1882
Assert.Same(image1, control.
BackgroundImage
);
1883
Assert.Null(child1.
BackgroundImage
);
1884
Assert.Null(child2.
BackgroundImage
);
1935
Assert.Same(image1, control.
BackgroundImage
);
1936
Assert.Same(childBackgroundImage1, child1.
BackgroundImage
);
1937
Assert.Same(childBackgroundImage2, child2.
BackgroundImage
);
1944
Assert.Same(image1, control.
BackgroundImage
);
1945
Assert.Same(childBackgroundImage1, child1.
BackgroundImage
);
1946
Assert.Same(childBackgroundImage2, child2.
BackgroundImage
);
1954
Assert.Same(image2, control.
BackgroundImage
);
1955
Assert.Same(childBackgroundImage1, child1.
BackgroundImage
);
1956
Assert.Same(childBackgroundImage2, child2.
BackgroundImage
);
1963
Assert.Null(control.
BackgroundImage
);
1964
Assert.Same(childBackgroundImage1, child1.
BackgroundImage
);
1965
Assert.Same(childBackgroundImage2, child2.
BackgroundImage
);
1975
Assert.Same(image1, control.
BackgroundImage
);
1976
Assert.Same(childBackgroundImage1, child1.
BackgroundImage
);
1977
Assert.Same(childBackgroundImage2, child2.
BackgroundImage
);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
43
Assert.Null(control.
BackgroundImage
);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
31
Assert.Null(control.
BackgroundImage
);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
30
Assert.Null(control.
BackgroundImage
);
System\Windows\Forms\FormTests.cs (1)
41
Assert.Null(control.
BackgroundImage
);
System\Windows\Forms\GroupBoxTests.cs (1)
28
Assert.Null(control.
BackgroundImage
);
System\Windows\Forms\ListControlTests.cs (1)
29
Assert.Null(control.
BackgroundImage
);
System\Windows\Forms\ListViewTests.cs (1)
34
Assert.Null(control.
BackgroundImage
);
System\Windows\Forms\MenuStripTests.cs (1)
31
Assert.Null(control.
BackgroundImage
);
System\Windows\Forms\PanelTests.cs (1)
31
Assert.Null(control.
BackgroundImage
);
System\Windows\Forms\PictureBoxTests.cs (1)
30
Assert.Null(control.
BackgroundImage
);
System\Windows\Forms\RadioButtonTests.cs (1)
31
Assert.Null(control.
BackgroundImage
);
System\Windows\Forms\ScrollableControlTests.cs (1)
31
Assert.Null(control.
BackgroundImage
);
System\Windows\Forms\SplitterPanelTests.cs (1)
37
Assert.Null(control.
BackgroundImage
);
System\Windows\Forms\StatusStripTests.cs (1)
31
Assert.Null(control.
BackgroundImage
);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
32
Assert.Null(control.
BackgroundImage
);
System\Windows\Forms\TabPageTests.cs (2)
35
Assert.Null(control.
BackgroundImage
);
144
Assert.Null(control.
BackgroundImage
);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
33
Assert.Null(control.
BackgroundImage
);
System\Windows\Forms\ToolStripControlHostTests.cs (4)
61
Assert.Equal(c.
BackgroundImage
, item.BackgroundImage);
414
Assert.Equal(value, c.
BackgroundImage
);
420
Assert.Equal(value, c.
BackgroundImage
);
560
Assert.Same(backgroundImage, c.
BackgroundImage
);
System\Windows\Forms\ToolStripDropDownTests.cs (8)
35
Assert.Null(control.
BackgroundImage
);
800
Assert.Same(value, control.
BackgroundImage
);
805
Assert.Same(value, control.
BackgroundImage
);
825
Assert.Same(image1, control.
BackgroundImage
);
830
Assert.Same(image1, control.
BackgroundImage
);
836
Assert.Same(image2, control.
BackgroundImage
);
841
Assert.Null(control.
BackgroundImage
);
847
Assert.Same(image1, control.
BackgroundImage
);
System\Windows\Forms\ToolStripPanelTests.cs (1)
32
Assert.Null(control.
BackgroundImage
);
System\Windows\Forms\ToolStripTests.cs (2)
35
Assert.Null(control.
BackgroundImage
);
193
Assert.Null(control.
BackgroundImage
);
System\Windows\Forms\UserControlTests.cs (1)
36
Assert.Null(control.
BackgroundImage
);
WindowsFormsIntegration (6)
System\Windows\Integration\ElementHost.cs (2)
340
OnPropertyChanged("BackgroundImage",
BackgroundImage
); //Update the background
928
OnPropertyChanged("BackgroundImage", this.
BackgroundImage
);
System\Windows\Integration\HostUtils.cs (3)
147
(child.
BackgroundImage
== null || child.
BackgroundImage
== adapter.
BackgroundImage
))
System\Windows\Integration\WindowsFormsHost.cs (1)
289
if (HostContainerInternal.
BackgroundImage
!= null)