2 overrides of BackgroundImage
System.Windows.Forms (2)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
69
public override Image?
BackgroundImage
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
33
public override Image?
BackgroundImage
13 writes to BackgroundImage
System.Windows.Forms (2)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
497
menuItem.
BackgroundImage
= BackgroundImage;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
36
set => base.
BackgroundImage
= value;
System.Windows.Forms.Tests (11)
System\Windows\Forms\ToolStripItemTests.cs (10)
1779
BackgroundImage
= value
1784
item.
BackgroundImage
= value;
1798
item.
BackgroundImage
= value;
1803
item.
BackgroundImage
= value;
1825
item.
BackgroundImage
= value;
1833
item.
BackgroundImage
= value;
1851
item.
BackgroundImage
= value;
1856
item.
BackgroundImage
= value;
1886
item.
BackgroundImage
= value;
1894
item.
BackgroundImage
= value;
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
277
BackgroundImage
= new Bitmap(10, 10),
55 references to BackgroundImage
System.Windows.Forms (29)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
497
menuItem.BackgroundImage =
BackgroundImage
;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (12)
267
if (item.
BackgroundImage
is not null)
270
ControlPaint.DrawBackgroundImage(g, item.
BackgroundImage
, item.BackColor, item.BackgroundImageLayout, bounds, fillRect);
357
if (item?.
BackgroundImage
is not null)
359
ControlPaint.DrawBackgroundImage(g, item.
BackgroundImage
, item.BackColor, item.BackgroundImageLayout, bounds, fillRect);
594
if (item.
BackgroundImage
is not null)
598
item.
BackgroundImage
,
651
if (item.
BackgroundImage
is not null)
653
ControlPaint.DrawBackgroundImage(g, item.
BackgroundImage
, item.BackColor, item.BackgroundImageLayout, bounds, fillRect);
1112
if (item.
BackgroundImage
is not null)
1114
ControlPaint.DrawBackgroundImage(g, item.
BackgroundImage
, item.BackColor, item.BackgroundImageLayout, bounds, fillRect);
1572
if (item.
BackgroundImage
is not null)
1574
ControlPaint.DrawBackgroundImage(g, item.
BackgroundImage
, item.BackColor, item.BackgroundImageLayout, bounds, fillRect);
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
35
get => base.
BackgroundImage
;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (15)
426
if (item.
BackgroundImage
is not null)
428
ControlPaint.DrawBackgroundImage(g, item.
BackgroundImage
, item.BackColor, item.BackgroundImageLayout, item.ContentRectangle, item.ContentRectangle);
471
if (item.
BackgroundImage
is not null)
473
ControlPaint.DrawBackgroundImage(g, item.
BackgroundImage
, item.BackColor, item.BackgroundImageLayout, item.ContentRectangle, fillRect);
565
if (splitButton.
BackgroundImage
is not null)
567
ControlPaint.DrawBackgroundImage(g, splitButton.
BackgroundImage
, splitButton.BackColor, splitButton.BackgroundImageLayout, fillRect, fillRect);
575
if (rightToLeft || splitButton.
BackgroundImage
is not null)
596
if (splitButton.
BackgroundImage
is not null)
600
if (splitButton.
BackgroundImage
is not null)
602
ControlPaint.DrawBackgroundImage(g, splitButton.
BackgroundImage
, splitButton.BackColor, splitButton.BackgroundImageLayout, bounds, fillRect);
618
if (splitButton.
BackgroundImage
is null)
673
if (item.
BackgroundImage
is not null)
675
ControlPaint.DrawBackgroundImage(g, item.
BackgroundImage
, item.BackColor, item.BackgroundImageLayout, fillRect, fillRect);
795
if (item.
BackgroundImage
is not null)
797
ControlPaint.DrawBackgroundImage(g, item.
BackgroundImage
, item.BackColor, item.BackgroundImageLayout, fillRect, fillRect);
System.Windows.Forms.Tests (26)
System\Windows\Forms\ToolStripButtonTests.cs (6)
31
Assert.Null(item.
BackgroundImage
);
112
Assert.Null(item.
BackgroundImage
);
199
Assert.Null(item.
BackgroundImage
);
289
Assert.Null(item.
BackgroundImage
);
377
Assert.Null(item.
BackgroundImage
);
475
Assert.Null(item.
BackgroundImage
);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
30
Assert.Null(item.
BackgroundImage
);
119
Assert.Null(item.
BackgroundImage
);
218
Assert.Null(item.
BackgroundImage
);
318
Assert.Null(item.
BackgroundImage
);
System\Windows\Forms\ToolStripItemTests.cs (13)
33
Assert.Null(item.
BackgroundImage
);
118
Assert.Null(item.
BackgroundImage
);
213
Assert.Null(item.
BackgroundImage
);
1781
Assert.Equal(value, item.
BackgroundImage
);
1785
Assert.Equal(value, item.
BackgroundImage
);
1799
Assert.Equal(value, item.
BackgroundImage
);
1804
Assert.Equal(value, item.
BackgroundImage
);
1826
Assert.Equal(value, item.
BackgroundImage
);
1834
Assert.Equal(value, item.
BackgroundImage
);
1852
Assert.Equal(value, item.
BackgroundImage
);
1857
Assert.Equal(value, item.
BackgroundImage
);
1887
Assert.Equal(value, item.
BackgroundImage
);
1895
Assert.Equal(value, item.
BackgroundImage
);
System\Windows\Forms\ToolStripMenuItemTests.cs (3)
31
Assert.Null(item.
BackgroundImage
);
322
clone.
BackgroundImage
.Should().Be(original.
BackgroundImage
);