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)
1779BackgroundImage = value 1784item.BackgroundImage = value; 1798item.BackgroundImage = value; 1803item.BackgroundImage = value; 1825item.BackgroundImage = value; 1833item.BackgroundImage = value; 1851item.BackgroundImage = value; 1856item.BackgroundImage = value; 1886item.BackgroundImage = value; 1894item.BackgroundImage = value;
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
277BackgroundImage = 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); 565if (splitButton.BackgroundImage is not null) 567ControlPaint.DrawBackgroundImage(g, splitButton.BackgroundImage, splitButton.BackColor, splitButton.BackgroundImageLayout, fillRect, fillRect); 575if (rightToLeft || splitButton.BackgroundImage is not null) 596if (splitButton.BackgroundImage is not null) 600if (splitButton.BackgroundImage is not null) 602ControlPaint.DrawBackgroundImage(g, splitButton.BackgroundImage, splitButton.BackColor, splitButton.BackgroundImageLayout, bounds, fillRect); 618if (splitButton.BackgroundImage is null) 673if (item.BackgroundImage is not null) 675ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, fillRect, fillRect); 795if (item.BackgroundImage is not null) 797ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, fillRect, fillRect);
System.Windows.Forms.Tests (26)
System\Windows\Forms\ToolStripButtonTests.cs (6)
31Assert.Null(item.BackgroundImage); 112Assert.Null(item.BackgroundImage); 199Assert.Null(item.BackgroundImage); 289Assert.Null(item.BackgroundImage); 377Assert.Null(item.BackgroundImage); 475Assert.Null(item.BackgroundImage);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
30Assert.Null(item.BackgroundImage); 119Assert.Null(item.BackgroundImage); 218Assert.Null(item.BackgroundImage); 318Assert.Null(item.BackgroundImage);
System\Windows\Forms\ToolStripItemTests.cs (13)
33Assert.Null(item.BackgroundImage); 118Assert.Null(item.BackgroundImage); 213Assert.Null(item.BackgroundImage); 1781Assert.Equal(value, item.BackgroundImage); 1785Assert.Equal(value, item.BackgroundImage); 1799Assert.Equal(value, item.BackgroundImage); 1804Assert.Equal(value, item.BackgroundImage); 1826Assert.Equal(value, item.BackgroundImage); 1834Assert.Equal(value, item.BackgroundImage); 1852Assert.Equal(value, item.BackgroundImage); 1857Assert.Equal(value, item.BackgroundImage); 1887Assert.Equal(value, item.BackgroundImage); 1895Assert.Equal(value, item.BackgroundImage);
System\Windows\Forms\ToolStripMenuItemTests.cs (3)
31Assert.Null(item.BackgroundImage); 322clone.BackgroundImage.Should().Be(original.BackgroundImage);