55 references to Stretch
System.Windows.Forms (4)
System\Windows\Forms\Control.cs (1)
881
if (value is ImageLayout.Center or ImageLayout.Zoom or ImageLayout.
Stretch
)
System\Windows\Forms\Rendering\ControlPaint.cs (2)
76
case ImageLayout.
Stretch
:
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 (51)
System\Windows\Forms\ComboBoxTests.cs (2)
597
control.BackgroundImageLayout = ImageLayout.
Stretch
;
598
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
System\Windows\Forms\ControlTests.Properties.cs (5)
2005
[InlineData(ImageLayout.
Stretch
, 1)]
2042
yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.
Stretch
, true };
2048
yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), ImageLayout.
Stretch
, false };
2094
control.BackgroundImageLayout = ImageLayout.
Stretch
;
2095
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
System\Windows\Forms\DataGridViewTests.cs (1)
3495
TestEvent(nameof(DataGridView.BackgroundImageLayoutChanged), nameof(DataGridView.BackgroundImageLayout), ImageLayout.Center, ImageLayout.
Stretch
);
System\Windows\Forms\DateTimePickerTests.cs (1)
751
control.BackgroundImageLayout = ImageLayout.
Stretch
;
System\Windows\Forms\LabelTests.cs (3)
572
label.BackgroundImageLayout = ImageLayout.
Stretch
;
573
Assert.Equal(ImageLayout.
Stretch
, label.BackgroundImageLayout);
602
label.BackgroundImageLayout = ImageLayout.
Stretch
;
System\Windows\Forms\ListBoxTests.cs (2)
572
control.BackgroundImageLayout = ImageLayout.
Stretch
;
573
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
System\Windows\Forms\ListViewTests.cs (2)
596
control.BackgroundImageLayout = ImageLayout.
Stretch
;
597
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
System\Windows\Forms\MdiClientTests.cs (2)
314
control.BackgroundImageLayout = ImageLayout.
Stretch
;
315
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
System\Windows\Forms\MonthCalendarTests.cs (2)
474
control.BackgroundImageLayout = ImageLayout.
Stretch
;
475
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
System\Windows\Forms\ProgressBarTests.cs (2)
319
control.BackgroundImageLayout = ImageLayout.
Stretch
;
320
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
System\Windows\Forms\PropertyGridTests.cs (2)
511
control.BackgroundImageLayout = ImageLayout.
Stretch
;
512
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
System\Windows\Forms\RichTextBoxTests.cs (2)
840
control.BackgroundImageLayout = ImageLayout.
Stretch
;
841
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
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\ScrollBarTests.cs (2)
344
control.BackgroundImageLayout = ImageLayout.
Stretch
;
345
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
System\Windows\Forms\SplitterTests.cs (2)
301
control.BackgroundImageLayout = ImageLayout.
Stretch
;
302
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
System\Windows\Forms\TabControlTests.cs (2)
719
control.BackgroundImageLayout = ImageLayout.
Stretch
;
720
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
System\Windows\Forms\ToolStripComboBoxTests.cs (1)
153
[InlineData(ImageLayout.
Stretch
)]
System\Windows\Forms\ToolStripDropDownTests.cs (2)
894
control.BackgroundImageLayout = ImageLayout.
Stretch
;
895
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
System\Windows\Forms\ToolStripItemTests.cs (1)
1994
[InlineData(ImageLayout.
Stretch
, 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)
65
[InlineData(ImageLayout.
Stretch
)]
System\Windows\Forms\TreeViewTests.cs (2)
889
control.BackgroundImageLayout = ImageLayout.
Stretch
;
890
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
System\Windows\Forms\UpDownBaseTests.cs (2)
704
control.BackgroundImageLayout = ImageLayout.
Stretch
;
705
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
TextBoxBaseTests.cs (2)
542
control.BackgroundImageLayout = ImageLayout.
Stretch
;
543
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
ToolStripContainerTests.cs (1)
106
_toolStripContainer.BackgroundImageLayout = ImageLayout.
Stretch
;
TrackBarTests.cs (2)
536
control.BackgroundImageLayout = ImageLayout.
Stretch
;
537
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);