21 references to Zoom
System.Windows.Forms (4)
System\Windows\Forms\Control.cs (1)
880if (value is ImageLayout.Center or ImageLayout.Zoom or ImageLayout.Stretch)
System\Windows\Forms\Rendering\ControlPaint.cs (2)
99case ImageLayout.Zoom: 463if (backgroundImageLayout is ImageLayout.Stretch or ImageLayout.Zoom)
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
662(BackgroundImageLayout == ImageLayout.Zoom || BackgroundImageLayout == ImageLayout.Stretch || BackgroundImageLayout == ImageLayout.Center))
System.Windows.Forms.Tests (17)
System\Windows\Forms\ControlTests.Properties.cs (3)
2009[InlineData(ImageLayout.Zoom, 1)] 2045yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Zoom, true }; 2051yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), ImageLayout.Zoom, false };
System\Windows\Forms\LabelTests.cs (1)
608label.BackgroundImageLayout = ImageLayout.Zoom;
System\Windows\Forms\ScrollableControlTests.cs (3)
1588int expected = backgroundImage is not null && (backgroundImageLayout == ImageLayout.Zoom || backgroundImageLayout == ImageLayout.Stretch || backgroundImageLayout == ImageLayout.Center) && (hScroll || vScroll) ? 0 : 1; 1639: backgroundImage is not null && (backgroundImageLayout == ImageLayout.Zoom || backgroundImageLayout == ImageLayout.Stretch || backgroundImageLayout == ImageLayout.Center) 1788int expected = backgroundImage is not null && (backgroundImageLayout == ImageLayout.Zoom || backgroundImageLayout == ImageLayout.Stretch || backgroundImageLayout == ImageLayout.Center) && (!hScroll && vScroll) ? 0 : 1;
System\Windows\Forms\ToolStripComboBoxTests.cs (1)
152[InlineData(ImageLayout.Zoom)]
System\Windows\Forms\ToolStripControlHostTests.cs (5)
31BackgroundImageLayout = ImageLayout.Zoom, 474Assert.Throws<ObjectDisposedException>(() => item.BackgroundImageLayout = ImageLayout.Zoom); 572c.BackgroundImageLayout = ImageLayout.Zoom; 573Assert.Equal(ImageLayout.Zoom, c.BackgroundImageLayout); 574Assert.Equal(ImageLayout.Zoom, item.BackgroundImageLayout);
System\Windows\Forms\ToolStripItemTests.cs (1)
1997[InlineData(ImageLayout.Zoom, 1)]
System\Windows\Forms\ToolStripTests.cs (2)
5930int expected = backgroundImage is not null && (backgroundImageLayout == ImageLayout.Zoom || backgroundImageLayout == ImageLayout.Stretch || backgroundImageLayout == ImageLayout.Center) && (hScroll || vScroll) ? 0 : 1; 5989: backgroundImage is not null && (backgroundImageLayout == ImageLayout.Zoom || backgroundImageLayout == ImageLayout.Stretch || backgroundImageLayout == ImageLayout.Center)
System\Windows\Forms\ToolStripTextBoxTests.cs (1)
68[InlineData(ImageLayout.Zoom)]