55 references to Stretch
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)
76
case ImageLayout.
Stretch
:
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 (51)
System\Windows\Forms\ComboBoxTests.cs (2)
599
control.BackgroundImageLayout = ImageLayout.
Stretch
;
600
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
System\Windows\Forms\ControlTests.Properties.cs (5)
2007
[InlineData(ImageLayout.
Stretch
, 1)]
2044
yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.
Stretch
, true };
2050
yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), ImageLayout.
Stretch
, false };
2096
control.BackgroundImageLayout = ImageLayout.
Stretch
;
2097
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
System\Windows\Forms\DataGridViewTests.cs (1)
3497
TestEvent(nameof(DataGridView.BackgroundImageLayoutChanged), nameof(DataGridView.BackgroundImageLayout), ImageLayout.Center, ImageLayout.
Stretch
);
System\Windows\Forms\DateTimePickerTests.cs (1)
753
control.BackgroundImageLayout = ImageLayout.
Stretch
;
System\Windows\Forms\LabelTests.cs (3)
574
label.BackgroundImageLayout = ImageLayout.
Stretch
;
575
Assert.Equal(ImageLayout.
Stretch
, label.BackgroundImageLayout);
604
label.BackgroundImageLayout = ImageLayout.
Stretch
;
System\Windows\Forms\ListBoxTests.cs (2)
574
control.BackgroundImageLayout = ImageLayout.
Stretch
;
575
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
System\Windows\Forms\ListViewTests.cs (2)
598
control.BackgroundImageLayout = ImageLayout.
Stretch
;
599
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
System\Windows\Forms\MdiClientTests.cs (2)
316
control.BackgroundImageLayout = ImageLayout.
Stretch
;
317
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
System\Windows\Forms\MonthCalendarTests.cs (2)
476
control.BackgroundImageLayout = ImageLayout.
Stretch
;
477
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
System\Windows\Forms\ProgressBarTests.cs (2)
321
control.BackgroundImageLayout = ImageLayout.
Stretch
;
322
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
System\Windows\Forms\PropertyGridTests.cs (2)
513
control.BackgroundImageLayout = ImageLayout.
Stretch
;
514
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
System\Windows\Forms\RichTextBoxTests.cs (2)
842
control.BackgroundImageLayout = ImageLayout.
Stretch
;
843
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
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\ScrollBarTests.cs (2)
346
control.BackgroundImageLayout = ImageLayout.
Stretch
;
347
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
System\Windows\Forms\SplitterTests.cs (2)
303
control.BackgroundImageLayout = ImageLayout.
Stretch
;
304
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
System\Windows\Forms\TabControlTests.cs (2)
721
control.BackgroundImageLayout = ImageLayout.
Stretch
;
722
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
System\Windows\Forms\ToolStripComboBoxTests.cs (1)
151
[InlineData(ImageLayout.
Stretch
)]
System\Windows\Forms\ToolStripDropDownTests.cs (2)
896
control.BackgroundImageLayout = ImageLayout.
Stretch
;
897
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
System\Windows\Forms\ToolStripItemTests.cs (1)
1996
[InlineData(ImageLayout.
Stretch
, 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)
67
[InlineData(ImageLayout.
Stretch
)]
System\Windows\Forms\TreeViewTests.cs (2)
891
control.BackgroundImageLayout = ImageLayout.
Stretch
;
892
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
System\Windows\Forms\UpDownBaseTests.cs (2)
706
control.BackgroundImageLayout = ImageLayout.
Stretch
;
707
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
TextBoxBaseTests.cs (2)
544
control.BackgroundImageLayout = ImageLayout.
Stretch
;
545
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);
ToolStripContainerTests.cs (1)
108
_toolStripContainer.BackgroundImageLayout = ImageLayout.
Stretch
;
TrackBarTests.cs (2)
538
control.BackgroundImageLayout = ImageLayout.
Stretch
;
539
Assert.Equal(ImageLayout.
Stretch
, control.BackgroundImageLayout);