2 overrides of BackgroundImage
System.Windows.Forms (2)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
69public override Image? BackgroundImage
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
33public override Image? BackgroundImage
13 writes to BackgroundImage
System.Windows.Forms (2)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
497menuItem.BackgroundImage = BackgroundImage;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
36set => base.BackgroundImage = value;
System.Windows.Forms.Tests (11)
System\Windows\Forms\ToolStripItemTests.cs (10)
1781BackgroundImage = value 1786item.BackgroundImage = value; 1800item.BackgroundImage = value; 1805item.BackgroundImage = value; 1827item.BackgroundImage = value; 1835item.BackgroundImage = value; 1853item.BackgroundImage = value; 1858item.BackgroundImage = value; 1888item.BackgroundImage = value; 1896item.BackgroundImage = value;
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
275BackgroundImage = new Bitmap(10, 10),
55 references to BackgroundImage
System.Windows.Forms (29)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
497menuItem.BackgroundImage = BackgroundImage;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (12)
267if (item.BackgroundImage is not null) 270ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, bounds, fillRect); 357if (item?.BackgroundImage is not null) 359ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, bounds, fillRect); 594if (item.BackgroundImage is not null) 598item.BackgroundImage, 651if (item.BackgroundImage is not null) 653ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, bounds, fillRect); 1112if (item.BackgroundImage is not null) 1114ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, bounds, fillRect); 1572if (item.BackgroundImage is not null) 1574ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, bounds, fillRect);
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
35get => base.BackgroundImage;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (15)
426if (item.BackgroundImage is not null) 428ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, item.ContentRectangle, item.ContentRectangle); 471if (item.BackgroundImage is not null) 473ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, item.ContentRectangle, fillRect); 563if (splitButton.BackgroundImage is not null) 565ControlPaint.DrawBackgroundImage(g, splitButton.BackgroundImage, splitButton.BackColor, splitButton.BackgroundImageLayout, fillRect, fillRect); 573if (rightToLeft || splitButton.BackgroundImage is not null) 593if (splitButton.BackgroundImage is not null) 599if (splitButton.BackgroundImage is not null) 601ControlPaint.DrawBackgroundImage(g, splitButton.BackgroundImage, splitButton.BackColor, splitButton.BackgroundImageLayout, bounds, fillRect); 617if (splitButton.BackgroundImage is null) 672if (item.BackgroundImage is not null) 674ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, fillRect, fillRect); 794if (item.BackgroundImage is not null) 796ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, fillRect, fillRect);
System.Windows.Forms.Tests (26)
System\Windows\Forms\ToolStripButtonTests.cs (6)
33Assert.Null(item.BackgroundImage); 114Assert.Null(item.BackgroundImage); 201Assert.Null(item.BackgroundImage); 291Assert.Null(item.BackgroundImage); 379Assert.Null(item.BackgroundImage); 477Assert.Null(item.BackgroundImage);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
32Assert.Null(item.BackgroundImage); 121Assert.Null(item.BackgroundImage); 220Assert.Null(item.BackgroundImage); 320Assert.Null(item.BackgroundImage);
System\Windows\Forms\ToolStripItemTests.cs (13)
35Assert.Null(item.BackgroundImage); 120Assert.Null(item.BackgroundImage); 215Assert.Null(item.BackgroundImage); 1783Assert.Equal(value, item.BackgroundImage); 1787Assert.Equal(value, item.BackgroundImage); 1801Assert.Equal(value, item.BackgroundImage); 1806Assert.Equal(value, item.BackgroundImage); 1828Assert.Equal(value, item.BackgroundImage); 1836Assert.Equal(value, item.BackgroundImage); 1854Assert.Equal(value, item.BackgroundImage); 1859Assert.Equal(value, item.BackgroundImage); 1889Assert.Equal(value, item.BackgroundImage); 1897Assert.Equal(value, item.BackgroundImage);
System\Windows\Forms\ToolStripMenuItemTests.cs (3)
29Assert.Null(item.BackgroundImage); 320clone.BackgroundImage.Should().Be(original.BackgroundImage);