21 references to Zoom
System.Windows.Forms (4)
System\Windows\Forms\Control.cs (1)
882
if (value is ImageLayout.Center or ImageLayout.
Zoom
or ImageLayout.Stretch)
System\Windows\Forms\Rendering\ControlPaint.cs (2)
99
case ImageLayout.
Zoom
:
466
if (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)]
2043
yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.
Zoom
, true };
2049
yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), ImageLayout.
Zoom
, false };
System\Windows\Forms\LabelTests.cs (1)
606
label.BackgroundImageLayout = ImageLayout.
Zoom
;
System\Windows\Forms\ScrollableControlTests.cs (3)
1586
int 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)
1786
int 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)
29
BackgroundImageLayout = ImageLayout.
Zoom
,
472
Assert.Throws<ObjectDisposedException>(() => item.BackgroundImageLayout = ImageLayout.
Zoom
);
570
c.BackgroundImageLayout = ImageLayout.
Zoom
;
571
Assert.Equal(ImageLayout.
Zoom
, c.BackgroundImageLayout);
572
Assert.Equal(ImageLayout.
Zoom
, item.BackgroundImageLayout);
System\Windows\Forms\ToolStripItemTests.cs (1)
1995
[InlineData(ImageLayout.
Zoom
, 1)]
System\Windows\Forms\ToolStripTests.cs (2)
5928
int 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
)]