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