2 overrides of BackgroundImageLayout
System.Windows.Forms (2)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
79
public override ImageLayout
BackgroundImageLayout
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
42
public override ImageLayout
BackgroundImageLayout
14 writes to BackgroundImageLayout
System.Windows.Forms (2)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
498
menuItem.
BackgroundImageLayout
= BackgroundImageLayout;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
45
set => base.
BackgroundImageLayout
= value;
System.Windows.Forms.Tests (12)
System\Windows\Forms\ToolStripItemTests.cs (11)
1910
BackgroundImageLayout
= value
1915
item.
BackgroundImageLayout
= value;
1929
item.
BackgroundImageLayout
= value;
1934
item.
BackgroundImageLayout
= value;
1956
item.
BackgroundImageLayout
= value;
1964
item.
BackgroundImageLayout
= value;
1982
item.
BackgroundImageLayout
= value;
1987
item.
BackgroundImageLayout
= value;
2013
item.
BackgroundImageLayout
= value;
2021
item.
BackgroundImageLayout
= value;
2034
Assert.Throws<InvalidEnumArgumentException>("value", () => item.
BackgroundImageLayout
= value);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
276
BackgroundImageLayout
= ImageLayout.Center,
40 references to BackgroundImageLayout
System.Windows.Forms (14)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
498
menuItem.BackgroundImageLayout =
BackgroundImageLayout
;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (6)
270
ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.
BackgroundImageLayout
, bounds, fillRect);
359
ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.
BackgroundImageLayout
, bounds, fillRect);
600
item.
BackgroundImageLayout
,
653
ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.
BackgroundImageLayout
, bounds, fillRect);
1114
ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.
BackgroundImageLayout
, bounds, fillRect);
1574
ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.
BackgroundImageLayout
, bounds, fillRect);
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
44
get => base.
BackgroundImageLayout
;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (6)
428
ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.
BackgroundImageLayout
, item.ContentRectangle, item.ContentRectangle);
473
ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.
BackgroundImageLayout
, item.ContentRectangle, fillRect);
565
ControlPaint.DrawBackgroundImage(g, splitButton.BackgroundImage, splitButton.BackColor, splitButton.
BackgroundImageLayout
, fillRect, fillRect);
601
ControlPaint.DrawBackgroundImage(g, splitButton.BackgroundImage, splitButton.BackColor, splitButton.
BackgroundImageLayout
, bounds, fillRect);
674
ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.
BackgroundImageLayout
, fillRect, fillRect);
796
ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.
BackgroundImageLayout
, fillRect, fillRect);
System.Windows.Forms.Tests (26)
System\Windows\Forms\ToolStripButtonTests.cs (6)
34
Assert.Equal(ImageLayout.Tile, item.
BackgroundImageLayout
);
115
Assert.Equal(ImageLayout.Tile, item.
BackgroundImageLayout
);
202
Assert.Equal(ImageLayout.Tile, item.
BackgroundImageLayout
);
292
Assert.Equal(ImageLayout.Tile, item.
BackgroundImageLayout
);
380
Assert.Equal(ImageLayout.Tile, item.
BackgroundImageLayout
);
478
Assert.Equal(ImageLayout.Tile, item.
BackgroundImageLayout
);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
33
Assert.Equal(ImageLayout.Tile, item.
BackgroundImageLayout
);
122
Assert.Equal(ImageLayout.Tile, item.
BackgroundImageLayout
);
221
Assert.Equal(ImageLayout.Tile, item.
BackgroundImageLayout
);
321
Assert.Equal(ImageLayout.Tile, item.
BackgroundImageLayout
);
System\Windows\Forms\ToolStripItemTests.cs (13)
36
Assert.Equal(ImageLayout.Tile, item.
BackgroundImageLayout
);
121
Assert.Equal(ImageLayout.Tile, item.
BackgroundImageLayout
);
216
Assert.Equal(ImageLayout.Tile, item.
BackgroundImageLayout
);
1912
Assert.Equal(value, item.
BackgroundImageLayout
);
1916
Assert.Equal(value, item.
BackgroundImageLayout
);
1930
Assert.Equal(value, item.
BackgroundImageLayout
);
1935
Assert.Equal(value, item.
BackgroundImageLayout
);
1957
Assert.Equal(value, item.
BackgroundImageLayout
);
1965
Assert.Equal(value, item.
BackgroundImageLayout
);
1983
Assert.Equal(value, item.
BackgroundImageLayout
);
1988
Assert.Equal(value, item.
BackgroundImageLayout
);
2014
Assert.Equal(value, item.
BackgroundImageLayout
);
2022
Assert.Equal(value, item.
BackgroundImageLayout
);
System\Windows\Forms\ToolStripMenuItemTests.cs (3)
30
Assert.Equal(ImageLayout.Tile, item.
BackgroundImageLayout
);
321
clone.
BackgroundImageLayout
.Should().Be(original.
BackgroundImageLayout
);