131 references to Center
System.Windows.Forms (3)
System\Windows\Forms\Control.cs (1)
880if (value is ImageLayout.Center or ImageLayout.Zoom or ImageLayout.Stretch)
System\Windows\Forms\Rendering\ControlPaint.cs (1)
84case ImageLayout.Center:
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
662(BackgroundImageLayout == ImageLayout.Zoom || BackgroundImageLayout == ImageLayout.Stretch || BackgroundImageLayout == ImageLayout.Center))
System.Windows.Forms.Tests (126)
System\Windows\Forms\ComboBoxTests.cs (6)
589control.BackgroundImageLayout = ImageLayout.Center; 590Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 594control.BackgroundImageLayout = ImageLayout.Center; 595Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 605control.BackgroundImageLayout = ImageLayout.Center; 606Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout);
System\Windows\Forms\ControlTests.Handlers.cs (2)
558BackgroundImageLayout = ImageLayout.Center 562BackgroundImageLayout = ImageLayout.Center
System\Windows\Forms\ControlTests.Properties.cs (11)
2005[InlineData(ImageLayout.Center, 1)] 2043yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Center, true }; 2049yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), ImageLayout.Center, false }; 2086control.BackgroundImageLayout = ImageLayout.Center; 2087Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 2091control.BackgroundImageLayout = ImageLayout.Center; 2092Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 2102control.BackgroundImageLayout = ImageLayout.Center; 2103Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 2121control.BackgroundImageLayout = ImageLayout.Center; 2122Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout);
System\Windows\Forms\DataGridViewTests.cs (1)
3497TestEvent(nameof(DataGridView.BackgroundImageLayoutChanged), nameof(DataGridView.BackgroundImageLayout), ImageLayout.Center, ImageLayout.Stretch);
System\Windows\Forms\DateTimePickerTests.cs (1)
749control.BackgroundImageLayout = ImageLayout.Center;
System\Windows\Forms\LabelTests.cs (5)
566label.BackgroundImageLayout = ImageLayout.Center; 567Assert.Equal(ImageLayout.Center, label.BackgroundImageLayout); 570label.BackgroundImageLayout = ImageLayout.Center; 571Assert.Equal(ImageLayout.Center, label.BackgroundImageLayout); 598label.BackgroundImageLayout = ImageLayout.Center;
System\Windows\Forms\ListBoxTests.cs (6)
564control.BackgroundImageLayout = ImageLayout.Center; 565Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 569control.BackgroundImageLayout = ImageLayout.Center; 570Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 580control.BackgroundImageLayout = ImageLayout.Center; 581Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout);
System\Windows\Forms\ListViewTests.cs (6)
588control.BackgroundImageLayout = ImageLayout.Center; 589Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 593control.BackgroundImageLayout = ImageLayout.Center; 594Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 604control.BackgroundImageLayout = ImageLayout.Center; 605Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout);
System\Windows\Forms\MdiClientTests.cs (6)
306control.BackgroundImageLayout = ImageLayout.Center; 307Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 311control.BackgroundImageLayout = ImageLayout.Center; 312Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 322control.BackgroundImageLayout = ImageLayout.Center; 323Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout);
System\Windows\Forms\MonthCalendarTests.cs (6)
466control.BackgroundImageLayout = ImageLayout.Center; 467Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 471control.BackgroundImageLayout = ImageLayout.Center; 472Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 482control.BackgroundImageLayout = ImageLayout.Center; 483Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout);
System\Windows\Forms\ProgressBarTests.cs (6)
311control.BackgroundImageLayout = ImageLayout.Center; 312Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 316control.BackgroundImageLayout = ImageLayout.Center; 317Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 327control.BackgroundImageLayout = ImageLayout.Center; 328Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout);
System\Windows\Forms\PropertyGridTests.cs (6)
503control.BackgroundImageLayout = ImageLayout.Center; 504Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 508control.BackgroundImageLayout = ImageLayout.Center; 509Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 519control.BackgroundImageLayout = ImageLayout.Center; 520Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout);
System\Windows\Forms\RichTextBoxTests.cs (6)
832control.BackgroundImageLayout = ImageLayout.Center; 833Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 837control.BackgroundImageLayout = ImageLayout.Center; 838Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 848control.BackgroundImageLayout = ImageLayout.Center; 849Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout);
System\Windows\Forms\ScrollableControlTests.cs (3)
1588int 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) 1788int expected = backgroundImage is not null && (backgroundImageLayout == ImageLayout.Zoom || backgroundImageLayout == ImageLayout.Stretch || backgroundImageLayout == ImageLayout.Center) && (!hScroll && vScroll) ? 0 : 1;
System\Windows\Forms\ScrollBarTests.cs (6)
336control.BackgroundImageLayout = ImageLayout.Center; 337Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 341control.BackgroundImageLayout = ImageLayout.Center; 342Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 352control.BackgroundImageLayout = ImageLayout.Center; 353Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout);
System\Windows\Forms\SplitterTests.cs (6)
293control.BackgroundImageLayout = ImageLayout.Center; 294Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 298control.BackgroundImageLayout = ImageLayout.Center; 299Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 309control.BackgroundImageLayout = ImageLayout.Center; 310Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout);
System\Windows\Forms\TabControlTests.cs (6)
711control.BackgroundImageLayout = ImageLayout.Center; 712Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 716control.BackgroundImageLayout = ImageLayout.Center; 717Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 727control.BackgroundImageLayout = ImageLayout.Center; 728Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout);
System\Windows\Forms\ToolStripComboBoxTests.cs (1)
150[InlineData(ImageLayout.Center)]
System\Windows\Forms\ToolStripDropDownTests.cs (6)
886control.BackgroundImageLayout = ImageLayout.Center; 887Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 891control.BackgroundImageLayout = ImageLayout.Center; 892Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 902control.BackgroundImageLayout = ImageLayout.Center; 903Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout);
System\Windows\Forms\ToolStripItemTests.cs (1)
1995[InlineData(ImageLayout.Center, 1)]
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
276BackgroundImageLayout = ImageLayout.Center,
System\Windows\Forms\ToolStripTests.cs (2)
5930int 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)
66[InlineData(ImageLayout.Center)]
System\Windows\Forms\TreeViewTests.cs (6)
881control.BackgroundImageLayout = ImageLayout.Center; 882Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 886control.BackgroundImageLayout = ImageLayout.Center; 887Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 897control.BackgroundImageLayout = ImageLayout.Center; 898Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout);
System\Windows\Forms\UpDownBaseTests.cs (6)
696control.BackgroundImageLayout = ImageLayout.Center; 697Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 701control.BackgroundImageLayout = ImageLayout.Center; 702Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 712control.BackgroundImageLayout = ImageLayout.Center; 713Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout);
TextBoxBaseTests.cs (6)
534control.BackgroundImageLayout = ImageLayout.Center; 535Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 539control.BackgroundImageLayout = ImageLayout.Center; 540Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 550control.BackgroundImageLayout = ImageLayout.Center; 551Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout);
ToolStripContainerTests.cs (1)
103_toolStripContainer.BackgroundImageLayout = ImageLayout.Center;
TrackBarTests.cs (6)
528control.BackgroundImageLayout = ImageLayout.Center; 529Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 533control.BackgroundImageLayout = ImageLayout.Center; 534Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout); 544control.BackgroundImageLayout = ImageLayout.Center; 545Assert.Equal(ImageLayout.Center, control.BackgroundImageLayout);
System.Windows.Forms.UI.IntegrationTests (2)
PropertyGridTests.cs (2)
172_propertyGrid.BackgroundImageLayout = ImageLayout.Center; 173_propertyGrid.BackgroundImageLayout.Should().Be(ImageLayout.Center);