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