21 references to Zoom
System.Windows.Forms (4)
System\Windows\Forms\Control.cs (1)
880
if (value is ImageLayout.Center or ImageLayout.
Zoom
or ImageLayout.Stretch)
System\Windows\Forms\Rendering\ControlPaint.cs (2)
99
case ImageLayout.
Zoom
:
463
if (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)]
2045
yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.
Zoom
, true };
2051
yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), ImageLayout.
Zoom
, false };
System\Windows\Forms\LabelTests.cs (1)
608
label.BackgroundImageLayout = ImageLayout.
Zoom
;
System\Windows\Forms\ScrollableControlTests.cs (3)
1588
int 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)
1788
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)
152
[InlineData(ImageLayout.
Zoom
)]
System\Windows\Forms\ToolStripControlHostTests.cs (5)
31
BackgroundImageLayout = ImageLayout.
Zoom
,
474
Assert.Throws<ObjectDisposedException>(() => item.BackgroundImageLayout = ImageLayout.
Zoom
);
572
c.BackgroundImageLayout = ImageLayout.
Zoom
;
573
Assert.Equal(ImageLayout.
Zoom
, c.BackgroundImageLayout);
574
Assert.Equal(ImageLayout.
Zoom
, item.BackgroundImageLayout);
System\Windows\Forms\ToolStripItemTests.cs (1)
1997
[InlineData(ImageLayout.
Zoom
, 1)]
System\Windows\Forms\ToolStripTests.cs (2)
5930
int 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
)]