155 references to Tile
System.Windows.Forms (9)
System\Windows\Forms\Control.cs (4)
865[DefaultValue(ImageLayout.Tile)] 870get => Properties.GetValueOrDefault(s_backgroundImageLayoutProperty, ImageLayout.Tile); 892Properties.AddOrRemoveValue(s_backgroundImageLayoutProperty, value, defaultValue: ImageLayout.Tile); 8060if (!renderColorTransparent && BackgroundImageLayout == ImageLayout.Tile && imageIsTransparent)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
76[DefaultValue(ImageLayout.Tile)]
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (3)
484[DefaultValue(ImageLayout.Tile)] 489get => Properties.GetValueOrDefault(s_backgroundImageLayoutProperty, ImageLayout.Tile); 493if (Properties.AddOrRemoveValue(s_backgroundImageLayoutProperty, value, defaultValue: ImageLayout.Tile) != value)
System\Windows\Forms\Rendering\ControlPaint.cs (1)
426if (backgroundImageLayout == ImageLayout.Tile)
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
31Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System.Windows.Forms.Tests (144)
System\Windows\Forms\AxHostTests.cs (2)
39Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout); 133Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\ButtonBaseTests.cs (1)
31Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\ButtonTests.cs (1)
33Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\CheckBoxTests.cs (1)
32Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\ComboBoxTests.cs (1)
36Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\ContainerControlTests.cs (1)
37Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\ControlTests.cs (5)
26Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout); 115Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout); 211Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout); 307Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout); 403Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\ControlTests.Handlers.cs (18)
3919yield return new object[] { parent, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 3920yield return new object[] { parent, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 3921yield return new object[] { parent, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 2 }; 3922yield return new object[] { parent, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 2 }; 3923yield return new object[] { parent, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 3924yield return new object[] { parent, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 3963yield return new object[] { parent, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 3964yield return new object[] { parent, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 3965yield return new object[] { parent, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 3966yield return new object[] { parent, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 3967yield return new object[] { parent, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 3968yield return new object[] { parent, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 4091yield return new object[] { true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4092yield return new object[] { true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4093yield return new object[] { true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4094yield return new object[] { true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4095yield return new object[] { false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4096yield return new object[] { false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
System\Windows\Forms\ControlTests.Properties.cs (3)
2006[InlineData(ImageLayout.Tile, 0)] 2040yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, false }; 2046yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), ImageLayout.Tile, false };
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
35Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\DateTimePickerTests.cs (1)
33Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
44Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
32Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\DomainUpDownTests.cs (1)
45_sub.BackgroundImageLayout.Should().Be(ImageLayout.Tile);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
31Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\FormTests.cs (1)
42Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\GroupBoxTests.cs (1)
29Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\HScrollBarTests.cs (1)
26Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\LabelTests.cs (2)
28Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout); 561Assert.Equal(ImageLayout.Tile, label.BackgroundImageLayout); // Default value
System\Windows\Forms\ListBoxTests.cs (1)
29Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\ListControlTests.cs (1)
30Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\ListViewTests.cs (1)
35Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\MdiClientTests.cs (2)
28Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout); 266Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\MdiControlStripTests.cs (1)
34Assert.Equal(ImageLayout.Tile, mdiControlStrip.BackgroundImageLayout);
System\Windows\Forms\MenuStripTests.cs (1)
32Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\MonthCalendarTests.cs (1)
32Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\PanelTests.cs (1)
32Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\PictureBoxTests.cs (1)
31Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\ProgressBarTests.cs (1)
28Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\PropertyGridTests.cs (1)
42Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\RadioButtonTests.cs (1)
32Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\RichTextBoxTests.cs (1)
39Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\ScrollableControlTests.cs (19)
32Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout); 1603yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1604yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1605yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 2 }; 1606yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 2 }; 1607yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1608yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1653yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 1654yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 1655yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 1656yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 1657yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 1658yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 1803yield return new object[] { hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1804yield return new object[] { hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1805yield return new object[] { hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1806yield return new object[] { hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1807yield return new object[] { hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1808yield return new object[] { hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
System\Windows\Forms\ScrollBarTests.cs (1)
27Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\SplitterPanelTests.cs (1)
38Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\SplitterTests.cs (1)
27Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\StatusStripTests.cs (1)
32Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\TabControlTests.cs (1)
30Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
33Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\TabPageTests.cs (14)
36Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout); 145Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout); 4032yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4033yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4034yield return new object[] { appearance, useVisualStyleBackColor, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4035yield return new object[] { appearance, useVisualStyleBackColor, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4036yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4037yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4171yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4172yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4173yield return new object[] { appearance, useVisualStyleBackColor, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4174yield return new object[] { appearance, useVisualStyleBackColor, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4175yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4176yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
System\Windows\Forms\ToolStripButtonTests.cs (6)
32Assert.Equal(ImageLayout.Tile, item.BackgroundImageLayout); 113Assert.Equal(ImageLayout.Tile, item.BackgroundImageLayout); 200Assert.Equal(ImageLayout.Tile, item.BackgroundImageLayout); 290Assert.Equal(ImageLayout.Tile, item.BackgroundImageLayout); 378Assert.Equal(ImageLayout.Tile, item.BackgroundImageLayout); 476Assert.Equal(ImageLayout.Tile, item.BackgroundImageLayout);
System\Windows\Forms\ToolStripComboBoxTests.cs (1)
151[InlineData(ImageLayout.Tile)]
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
34Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
31Assert.Equal(ImageLayout.Tile, item.BackgroundImageLayout); 120Assert.Equal(ImageLayout.Tile, item.BackgroundImageLayout); 219Assert.Equal(ImageLayout.Tile, item.BackgroundImageLayout); 319Assert.Equal(ImageLayout.Tile, item.BackgroundImageLayout);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
36Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\ToolStripItemTests.cs (4)
34Assert.Equal(ImageLayout.Tile, item.BackgroundImageLayout); 119Assert.Equal(ImageLayout.Tile, item.BackgroundImageLayout); 214Assert.Equal(ImageLayout.Tile, item.BackgroundImageLayout); 1992[InlineData(ImageLayout.Tile, 0)]
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
32Assert.Equal(ImageLayout.Tile, item.BackgroundImageLayout);
System\Windows\Forms\ToolStripPanelTests.cs (1)
33Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
32Assert.Equal(ImageLayout.Tile, item.BackgroundImageLayout);
System\Windows\Forms\ToolStripTests.cs (20)
36Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout); 194Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout); 5945yield return new object[] { parent, hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 5946yield return new object[] { parent, hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 5947yield return new object[] { parent, hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 2 }; 5948yield return new object[] { parent, hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 2 }; 5949yield return new object[] { parent, hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 5950yield return new object[] { parent, hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 6003yield return new object[] { parent, hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 }; 6004yield return new object[] { parent, hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 }; 6005yield return new object[] { parent, hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 }; 6006yield return new object[] { parent, hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 }; 6007yield return new object[] { parent, hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 }; 6008yield return new object[] { parent, hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 }; 6142yield return new object[] { hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 6143yield return new object[] { hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 6144yield return new object[] { hScroll, vScroll, true, Color.FromArgb(100, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 6145yield return new object[] { hScroll, vScroll, true, Color.FromArgb(0, 50, 100, 150), new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 6146yield return new object[] { hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 6147yield return new object[] { hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
System\Windows\Forms\TreeViewTests.cs (1)
27Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\UpDownBaseTests.cs (1)
31Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\UserControlTests.cs (1)
37Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\VScrollBarTests.cs (1)
25Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System\Windows\Forms\WebBrowserTests.cs (1)
28Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
TextBoxTests.cs (1)
34Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
TrackBarTests.cs (1)
29Assert.Equal(ImageLayout.Tile, control.BackgroundImageLayout);
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
170_propertyGrid.BackgroundImageLayout.Should().Be(ImageLayout.Tile);