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)
1781
BackgroundImage
= value
1786
item.
BackgroundImage
= value;
1800
item.
BackgroundImage
= value;
1805
item.
BackgroundImage
= value;
1827
item.
BackgroundImage
= value;
1835
item.
BackgroundImage
= value;
1853
item.
BackgroundImage
= value;
1858
item.
BackgroundImage
= value;
1888
item.
BackgroundImage
= value;
1896
item.
BackgroundImage
= value;
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
275
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);
563
if (splitButton.
BackgroundImage
is not null)
565
ControlPaint.DrawBackgroundImage(g, splitButton.
BackgroundImage
, splitButton.BackColor, splitButton.BackgroundImageLayout, fillRect, fillRect);
573
if (rightToLeft || splitButton.
BackgroundImage
is not null)
593
if (splitButton.
BackgroundImage
is not null)
599
if (splitButton.
BackgroundImage
is not null)
601
ControlPaint.DrawBackgroundImage(g, splitButton.
BackgroundImage
, splitButton.BackColor, splitButton.BackgroundImageLayout, bounds, fillRect);
617
if (splitButton.
BackgroundImage
is null)
672
if (item.
BackgroundImage
is not null)
674
ControlPaint.DrawBackgroundImage(g, item.
BackgroundImage
, item.BackColor, item.BackgroundImageLayout, fillRect, fillRect);
794
if (item.
BackgroundImage
is not null)
796
ControlPaint.DrawBackgroundImage(g, item.
BackgroundImage
, item.BackColor, item.BackgroundImageLayout, fillRect, fillRect);
System.Windows.Forms.Tests (26)
System\Windows\Forms\ToolStripButtonTests.cs (6)
33
Assert.Null(item.
BackgroundImage
);
114
Assert.Null(item.
BackgroundImage
);
201
Assert.Null(item.
BackgroundImage
);
291
Assert.Null(item.
BackgroundImage
);
379
Assert.Null(item.
BackgroundImage
);
477
Assert.Null(item.
BackgroundImage
);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
32
Assert.Null(item.
BackgroundImage
);
121
Assert.Null(item.
BackgroundImage
);
220
Assert.Null(item.
BackgroundImage
);
320
Assert.Null(item.
BackgroundImage
);
System\Windows\Forms\ToolStripItemTests.cs (13)
35
Assert.Null(item.
BackgroundImage
);
120
Assert.Null(item.
BackgroundImage
);
215
Assert.Null(item.
BackgroundImage
);
1783
Assert.Equal(value, item.
BackgroundImage
);
1787
Assert.Equal(value, item.
BackgroundImage
);
1801
Assert.Equal(value, item.
BackgroundImage
);
1806
Assert.Equal(value, item.
BackgroundImage
);
1828
Assert.Equal(value, item.
BackgroundImage
);
1836
Assert.Equal(value, item.
BackgroundImage
);
1854
Assert.Equal(value, item.
BackgroundImage
);
1859
Assert.Equal(value, item.
BackgroundImage
);
1889
Assert.Equal(value, item.
BackgroundImage
);
1897
Assert.Equal(value, item.
BackgroundImage
);
System\Windows\Forms\ToolStripMenuItemTests.cs (3)
29
Assert.Null(item.
BackgroundImage
);
320
clone.
BackgroundImage
.Should().Be(original.
BackgroundImage
);