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)
1908
BackgroundImageLayout
= value
1913
item.
BackgroundImageLayout
= value;
1927
item.
BackgroundImageLayout
= value;
1932
item.
BackgroundImageLayout
= value;
1954
item.
BackgroundImageLayout
= value;
1962
item.
BackgroundImageLayout
= value;
1980
item.
BackgroundImageLayout
= value;
1985
item.
BackgroundImageLayout
= value;
2011
item.
BackgroundImageLayout
= value;
2019
item.
BackgroundImageLayout
= value;
2032
Assert.Throws<InvalidEnumArgumentException>("value", () => item.
BackgroundImageLayout
= value);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
278
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);
567
ControlPaint.DrawBackgroundImage(g, splitButton.BackgroundImage, splitButton.BackColor, splitButton.
BackgroundImageLayout
, fillRect, fillRect);
602
ControlPaint.DrawBackgroundImage(g, splitButton.BackgroundImage, splitButton.BackColor, splitButton.
BackgroundImageLayout
, bounds, fillRect);
675
ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.
BackgroundImageLayout
, fillRect, fillRect);
797
ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.
BackgroundImageLayout
, fillRect, fillRect);
System.Windows.Forms.Tests (26)
System\Windows\Forms\ToolStripButtonTests.cs (6)
32
Assert.Equal(ImageLayout.Tile, item.
BackgroundImageLayout
);
113
Assert.Equal(ImageLayout.Tile, item.
BackgroundImageLayout
);
200
Assert.Equal(ImageLayout.Tile, item.
BackgroundImageLayout
);
290
Assert.Equal(ImageLayout.Tile, item.
BackgroundImageLayout
);
378
Assert.Equal(ImageLayout.Tile, item.
BackgroundImageLayout
);
476
Assert.Equal(ImageLayout.Tile, item.
BackgroundImageLayout
);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
31
Assert.Equal(ImageLayout.Tile, item.
BackgroundImageLayout
);
120
Assert.Equal(ImageLayout.Tile, item.
BackgroundImageLayout
);
219
Assert.Equal(ImageLayout.Tile, item.
BackgroundImageLayout
);
319
Assert.Equal(ImageLayout.Tile, item.
BackgroundImageLayout
);
System\Windows\Forms\ToolStripItemTests.cs (13)
34
Assert.Equal(ImageLayout.Tile, item.
BackgroundImageLayout
);
119
Assert.Equal(ImageLayout.Tile, item.
BackgroundImageLayout
);
214
Assert.Equal(ImageLayout.Tile, item.
BackgroundImageLayout
);
1910
Assert.Equal(value, item.
BackgroundImageLayout
);
1914
Assert.Equal(value, item.
BackgroundImageLayout
);
1928
Assert.Equal(value, item.
BackgroundImageLayout
);
1933
Assert.Equal(value, item.
BackgroundImageLayout
);
1955
Assert.Equal(value, item.
BackgroundImageLayout
);
1963
Assert.Equal(value, item.
BackgroundImageLayout
);
1981
Assert.Equal(value, item.
BackgroundImageLayout
);
1986
Assert.Equal(value, item.
BackgroundImageLayout
);
2012
Assert.Equal(value, item.
BackgroundImageLayout
);
2020
Assert.Equal(value, item.
BackgroundImageLayout
);
System\Windows\Forms\ToolStripMenuItemTests.cs (3)
32
Assert.Equal(ImageLayout.Tile, item.
BackgroundImageLayout
);
323
clone.
BackgroundImageLayout
.Should().Be(original.
BackgroundImageLayout
);