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)
499menuItem.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)
1780BackgroundImage = value 1785item.BackgroundImage = value; 1799item.BackgroundImage = value; 1804item.BackgroundImage = value; 1826item.BackgroundImage = value; 1834item.BackgroundImage = value; 1852item.BackgroundImage = value; 1857item.BackgroundImage = value; 1887item.BackgroundImage = value; 1895item.BackgroundImage = value;
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
277BackgroundImage = new Bitmap(10, 10),
56 references to BackgroundImage
System.Windows.Forms (30)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
395if (BackgroundImage != value)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
499menuItem.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); 1782Assert.Equal(value, item.BackgroundImage); 1786Assert.Equal(value, item.BackgroundImage); 1800Assert.Equal(value, item.BackgroundImage); 1805Assert.Equal(value, item.BackgroundImage); 1827Assert.Equal(value, item.BackgroundImage); 1835Assert.Equal(value, item.BackgroundImage); 1853Assert.Equal(value, item.BackgroundImage); 1858Assert.Equal(value, item.BackgroundImage); 1888Assert.Equal(value, item.BackgroundImage); 1896Assert.Equal(value, item.BackgroundImage);
System\Windows\Forms\ToolStripMenuItemTests.cs (3)
31Assert.Null(item.BackgroundImage); 322clone.BackgroundImage.Should().Be(original.BackgroundImage);