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