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