21 references to Zoom
System.Windows.Forms (4)
System\Windows\Forms\Control.cs (1)
881if (value is ImageLayout.Center or ImageLayout.Zoom or ImageLayout.Stretch)
System\Windows\Forms\Rendering\ControlPaint.cs (2)
99case ImageLayout.Zoom: 466if (backgroundImageLayout is ImageLayout.Stretch or ImageLayout.Zoom)
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
668(BackgroundImageLayout == ImageLayout.Zoom || BackgroundImageLayout == ImageLayout.Stretch || BackgroundImageLayout == ImageLayout.Center))
System.Windows.Forms.Tests (17)
System\Windows\Forms\ControlTests.Properties.cs (3)
2007[InlineData(ImageLayout.Zoom, 1)] 2043yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Zoom, true }; 2049yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), ImageLayout.Zoom, false };
System\Windows\Forms\LabelTests.cs (1)
606label.BackgroundImageLayout = ImageLayout.Zoom;
System\Windows\Forms\ScrollableControlTests.cs (3)
1586int expected = backgroundImage is not null && (backgroundImageLayout == ImageLayout.Zoom || backgroundImageLayout == ImageLayout.Stretch || backgroundImageLayout == ImageLayout.Center) && (hScroll || vScroll) ? 0 : 1; 1637: backgroundImage is not null && (backgroundImageLayout == ImageLayout.Zoom || backgroundImageLayout == ImageLayout.Stretch || backgroundImageLayout == ImageLayout.Center) 1786int expected = backgroundImage is not null && (backgroundImageLayout == ImageLayout.Zoom || backgroundImageLayout == ImageLayout.Stretch || backgroundImageLayout == ImageLayout.Center) && (!hScroll && vScroll) ? 0 : 1;
System\Windows\Forms\ToolStripComboBoxTests.cs (1)
154[InlineData(ImageLayout.Zoom)]
System\Windows\Forms\ToolStripControlHostTests.cs (5)
29BackgroundImageLayout = ImageLayout.Zoom, 472Assert.Throws<ObjectDisposedException>(() => item.BackgroundImageLayout = ImageLayout.Zoom); 570c.BackgroundImageLayout = ImageLayout.Zoom; 571Assert.Equal(ImageLayout.Zoom, c.BackgroundImageLayout); 572Assert.Equal(ImageLayout.Zoom, item.BackgroundImageLayout);
System\Windows\Forms\ToolStripItemTests.cs (1)
1995[InlineData(ImageLayout.Zoom, 1)]
System\Windows\Forms\ToolStripTests.cs (2)
5928int expected = backgroundImage is not null && (backgroundImageLayout == ImageLayout.Zoom || backgroundImageLayout == ImageLayout.Stretch || backgroundImageLayout == ImageLayout.Center) && (hScroll || vScroll) ? 0 : 1; 5987: backgroundImage is not null && (backgroundImageLayout == ImageLayout.Zoom || backgroundImageLayout == ImageLayout.Stretch || backgroundImageLayout == ImageLayout.Center)
System\Windows\Forms\ToolStripTextBoxTests.cs (1)
66[InlineData(ImageLayout.Zoom)]