2077 references to Control
InteractiveHost32 (1)
src\Interactive\HostProcess\InteractiveHostEntryPoint.cs (1)
41control = new Control();
InteractiveHost64 (1)
src\Interactive\HostProcess\InteractiveHostEntryPoint.cs (1)
41control = new Control();
Microsoft.VisualBasic.Forms.Tests (4)
System\Windows\Forms\CompilerServices.TestVbHost.vb (1)
16Private ReadOnly _testControl As New Control()
System\Windows\Forms\ControlInvokeTests.vb (3)
22Using _control As New Control 53Using _control As New Control 83Using _control As New Control
System.Windows.Forms (19)
System\Windows\Forms\ActiveX\AxHost.cs (1)
180: base()
System\Windows\Forms\Control.cs (1)
413public Control(Control? parent, string? text) : this()
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
110public DateTimePicker() : base()
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
28public GroupBox() : base()
System\Windows\Forms\Controls\Labels\Label.cs (1)
63public Label() : base()
System\Windows\Forms\Controls\ListView\ListView.cs (1)
214public ListView() : base()
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
133public MonthCalendar() : base()
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
38public ProgressBar() : base()
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
118: base()
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
47public Splitter() : base()
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
81: base()
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
89internal TextBoxBase() : base()
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
52public TrackBar() : base()
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
155: base()
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
41internal UpDownButtons(UpDownBase parent) : base()
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
70internal WebBrowserBase(string clsidString) : base()
System\Windows\Forms\MDI\MDIClient.cs (1)
29public MdiClient() : base()
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
58public ScrollableControl() : base()
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
32public ScrollBar() : base()
System.Windows.Forms.Design (4)
System\ComponentModel\Design\DesignerActionUI.cs (1)
105_marshalingControl = new Control();
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
183private Control DropSource => _dropSource ??= new Control();
System\Windows\Forms\Design\SelectionUIService.cs (1)
60public SelectionUIService(IDesignerHost host) : base()
System\Windows\Forms\Design\ToolStripItemBehavior.cs (1)
41_dropSource ??= new Control();
System.Windows.Forms.Design.Tests (76)
ControlDesignerTests.cs (4)
199using Control childControl = new(); 216using Control childControl = new(); 338{ "Parent", new Control() } 358{ nameof(mockParentDesigner.Object.Component), new Control() }
SplitContainerDesignerTests.cs (1)
45using Control control = new();
System\ComponentModel\Design\ByteViewerTests.cs (14)
312yield return new object[] { new LayoutEventArgs(new Control(), null) }; 313yield return new object[] { new LayoutEventArgs(new Control(), string.Empty) }; 314yield return new object[] { new LayoutEventArgs(new Control(), "ChildIndex") }; 315yield return new object[] { new LayoutEventArgs(new Control(), "Visible") }; 316yield return new object[] { new LayoutEventArgs(new Control(), "Items") }; 317yield return new object[] { new LayoutEventArgs(new Control(), "Rows") }; 318yield return new object[] { new LayoutEventArgs(new Control(), "Columns") }; 319yield return new object[] { new LayoutEventArgs(new Control(), "RowStyles") }; 320yield return new object[] { new LayoutEventArgs(new Control(), "ColumnStyles") }; 321yield return new object[] { new LayoutEventArgs(new Control(), "TableIndex") }; 322yield return new object[] { new LayoutEventArgs(new Control(), "GrowStyle") }; 323yield return new object[] { new LayoutEventArgs(new Control(), "CellBorderStyle") }; 324yield return new object[] { new LayoutEventArgs(new Control(), "LayoutSettings") }; 325yield return new object[] { new LayoutEventArgs(new Control(), "NoSuchProperty") };
System\Windows\Forms\Design\Behavior\SnapLineTests.cs (1)
247using Control control = new();
System\Windows\Forms\Design\ControlCommandSetTests.cs (4)
30_baseControl = new(); 75using Control component = new(); 94using Control childComponent = new(); 95using Control parentComponent = new();
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (13)
16_control = new(); 60using Control control = new(); 68using Control control1 = new(); 69using Control control2 = new(); 78using Control control = new(); 105using Control control = new(); 113using Control control = new(); 114using Control anotherControl = new(); 124using Control control = new(); 133using Control control = new(); 142using Control control = new(); 150using Control control = new(); 159using Control control = new();
System\Windows\Forms\Design\ControlDesignerAccessibleObjectTests.cs (2)
90Control control = new() { Name = "TestControl" }; 101Control control = new();
System\Windows\Forms\Design\DesignerFrameTests.cs (2)
58Control control = new(); 119Control control = new();
System\Windows\Forms\Design\DesignerToolStripControlHostTests.cs (1)
11using Control control = new();
System\Windows\Forms\Design\EventHandlerServiceTests.cs (1)
16using Control focusWnd = new();
System\Windows\Forms\Design\FlowLayoutPanelDesignerTests.cs (5)
43using Control childControl = new() { Site = new Mock<ISite>().Object }; 55using Control childControl = new() { Site = new Mock<ISite>().Object }; 131using Control control = new() 191using Control control1 = new(); 192using Control control2 = new();
System\Windows\Forms\Design\InheritanceUITests.cs (3)
25_control = new Control { Parent = _form }; 26_childControl = new Control { Parent = _control }; 27_sitedChildControl = new Control { Parent = _control, Site = new Mock<ISite>().Object };
System\Windows\Forms\Design\InheritedPropertyDescriptorTests.cs (4)
16using Control control = new(); 30using Control control = new(); 48using Control control = new(); 62using Control control = new();
System\Windows\Forms\Design\ParentControlDesignerTests.cs (1)
20_control = new();
System\Windows\Forms\Design\SelectionUIHandlerTests.cs (1)
23_control = new();
System\Windows\Forms\Design\StatusCommandUITests.cs (3)
45using Control control = new() { Bounds = new(10, 20, 30, 40) }; 81using Control control = new() { Bounds = new(10, 20, 30, 40) }; 106using Control control = new() { Bounds = new(10, 20, 30, 40) };
System\Windows\Forms\Design\TabOrderTests.cs (1)
163accessor._ctlHover = new Control();
System\Windows\Forms\Design\ToolStripAdornerWindowServiceTests.cs (3)
32_control = new(); 116Control parentControl = new() { Left = 10, Top = 20 }; 117Control control = new() { Parent = parentControl, Left = 30, Top = 40 };
System\Windows\Forms\Design\ToolStripContainerActionListTests.cs (8)
44using Control rootComponent = new(); 53using Control rootComponent = new(); 54using Control childControl1 = new(); 55using Control childControl2 = new(); 75using Control rootComponent = new(); 76using Control inheritedControl = new(); 192using Control rootComponent = new(); 193using Control childControl = new();
System\Windows\Forms\Design\ToolStripContainerDesignerTests.cs (1)
66using Control control = new();
System\Windows\Forms\Design\ToolStripEditorManagerTests.cs (1)
45_editorControl = new();
SystemDesignMetadataReader.cs (1)
19IDesigner designer = designSurface.CreateDesigner(new Control(), true);
TestControlDesigner.Mocks.cs (1)
12internal readonly Control _control = new();
System.Windows.Forms.Tests (1970)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (8)
546using Control first = new(); 547using Control second = new(); 574using Control control = new(); 633using Control control = new(); 699using Control control = new(); 718using Control control = new(); 737using Control control = new(); 2163using Control control = new();
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (54)
63using Control ownerControl = new(); 87using Control ownerControl = new(); 128using Control ownerControl = new(); 147using Control ownerControl = new(); 166using Control ownerControl = new(); 181using Control ownerControl = new(); 200using Control ownerControl = new() 212using Control ownerControl = new() 231using Control ownerControl = new() 258using Control control = new(); 266using Control ownerControl = new(); 285using Control ownerControl = new(); 355using Control parent = new(); 436using Control previousControl = new() 461using Control previousControl = new() 486using Control previousControl = new() 555using Control parent = new(); 676using Control previousControl = new() 702using Control previousControl = new() 728using Control previousControl = new() 747using Control ownerControl = new(); 836using Control ownerControl = new() 848using Control ownerControl = new(); 866using Control ownerControl = new(); 882using Control ownerControl = new(); 890using Control ownerControl = new(); 898using Control child = new(); 899using Control ownerControl = new(); 911using Control ownerControl = new(); 919using Control ownerControl = new(); 948using Control ownerControl = new(); 993using Control ownerControl = new(); 1004using Control ownerControl = new(); 1013using Control ownerControl = new(); 1022using Control ownerControl = new(); 1033using Control ownerControl = new(); 1044using Control ownerControl = new(); 1060using Control ownerControl = new(); 1070using Control ownerControl = new(); 1089using Control ownerControl = new(); 1107using Control ownerControl = new(); 1115using Control ownerControl = new(); 1130using Control ownerControl = new(); 1149using Control ownerControl = new(); 1166using Control ownerControl = new(); 1177using Control ownerControl = new(); 1186using Control ownerControl = new(); 1197using Control child = new(); 1198using Control ownerControl = new(); 1217using Control ownerControl = new(); 1226using Control control = new(); 1415using Control control = new(); 1619using Control ownerControl = new() { Name = "test name" }; 1637using Control control = new();
System\Windows\Forms\AccessibleObjects\ErrorProvider.ControlItem.ControlItemAccessibleObjectTests.cs (11)
33using Control control = new(); 45using Control parentControl = new(); 46using Control control = new(); 65using Control control = new(); 80using Control control = new(); 119using Control control = new(); 146using Control control = new(); 186using Control control = new(); 213using Control control = new(); 228using Control control = new(); 261using Control control = new();
System\Windows\Forms\AccessibleObjects\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObjectTests.cs (6)
92using Control control = new(); 106using Control control = new(); 123using Control control = new(); 145using Control control = new(); 163using Control control = new(); 182using Control control = new();
System\Windows\Forms\AccessibleObjects\ErrorProviderAccessibleObjectTests.cs (2)
29_control1 = new Control(); 33_control2 = new Control();
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripControlHostAccessibleObjectTests.cs (5)
22using Control control = new(); 34using Control control = new(); 46using Control control = new(); 59using Control control = new(); 72using Control control = new();
System\Windows\Forms\Application.ParkingWindowTests.cs (5)
77using Control control = new(); 112using Control control = new(); 145using Control control = new(); 178using Control control = new(); 189using Control systemControl = new();
System\Windows\Forms\ApplicationTests.cs (1)
249using Control control = new();
System\Windows\Forms\AxHostTests.cs (11)
351Control parent = new() 390Control parent = new(); 468Control child1 = new(); 469Control child2 = new(); 492Control child1 = new() 496Control child2 = new() 1306using Control parent = new(); 1323using Control parent = new(); 1352using Control parent = new(); 1823using Control parent = new(); 2120using Control parent = new();
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (1)
271{ new Control(), new string[] { "DataContext: Object", "Tag: Object" } },
System\Windows\Forms\BindingContextTests.cs (1)
995Control control = new();
System\Windows\Forms\ButtonBaseTests.cs (22)
1139using Control parent = new(); 1310using Control parent = new(); 1550using Control parent = new(); 1717using Control parent = new(); 1887using Control parent = new(); 1991using Control parent = new(); 2803yield return new object[] { enabled, visible, image, new Control() }; 2867using Control oldParent = new(); 2891using Control parent = new(); 2992using Control parent = new(); 3077using Control parent = new(); 3172using Control parent = new(); 3317using Control parent = new(); 3433using Control parent = new(); 3551using Control parent = new(); 3660using Control parent = new(); 3761using Control parent = new(); 3858using Control parent = new(); 3971using Control parent = new(); 4087using Control parent = new(); 7190using Control parent = new(); 7292using Control parent = new();
System\Windows\Forms\ButtonTests.cs (10)
299using Control parent = new(); 447using Control parent = new(); 793using Control parent = new(); 888using Control parent = new(); 1937using Control parent = new() 2019using Control parent = new() 2924using Control parent = new(); 3026using Control parent = new(); 3121using Control parent = new() 3199using Control parent = new()
System\Windows\Forms\CommonDialogTests.cs (4)
155using Control owner = new(); 176using Control owner = new(); 190using Control owner = new(); 212using Control owner = new();
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (1)
159using Control control = new();
System\Windows\Forms\ContainerControlTests.cs (20)
152using Control child = new(); 153Control grandchild = new(); 178Assert.Throws<ArgumentException>("value", () => control.ActiveControl = new Control()); 202using Control child = new(); 564using Control child = new(); 615using Control child = new(); 796using Control child1 = new(); 797using Control grandchild1 = new(); 800using Control grandchild2 = new(); 1022using Control child1 = new(); 1023using Control grandchild1 = new(); 1026using Control grandchild2 = new(); 1256using Control child1 = new(); 1257using Control child2 = new(); 1286using Control child1 = new(); 1287using Control child2 = new(); 1317using Control control = new(); 1342using Control control = new(); 1367using Control control = new(); 1383using Control control = new();
System\Windows\Forms\Control.ActiveXImplTests.cs (1)
17using Control control = new();
System\Windows\Forms\ControlBindingsCollectionTests.cs (26)
19Control control = new(); 40using Control control = new(); 59using Control control = new(); 71using Control control = new(); 126using Control control = new(); 143using Control control = new(); 160using Control control = new(); 177using Control control = new(); 194using Control control = new(); 211using Control control = new(); 228using Control control = new(); 241using Control control = new(); 255using Control control = new(); 272using Control control = new(); 280using Control control = new(); 291using Control control1 = new(); 292using Control control2 = new(); 304using Control control = new(); 324using Control control = new(); 340using Control control = new(); 352using Control control = new(); 365using Control control1 = new(); 366using Control control2 = new(); 382using Control control = new(); 400using Control control = new(); 413using Control control = new();
System\Windows\Forms\ControlTests.ControlCollection.cs (202)
19using Control owner = new(); 36using Control owner = new(); 37using Control control1 = new(); 38using Control control2 = new(); 110using Control owner = new(); 111using Control control1 = new(); 112using Control control2 = new(); 187using Control owner1 = new(); 188using Control owner2 = new(); 189using Control control = new(); 226using Control owner = new(); 331using Control owner = new(); 332using Control control = new() 360using Control owner = new(); 361using Control control = new() 389using Control owner = new(); 390using Control control = new() 428using Control owner = new(); 429using Control control = new() 467using Control owner = new(); 468using Control child1 = new(); 469using Control child2 = new(); 545using Control owner = new(); 546using Control control = new(); 588using Control owner = new(); 589using Control control = new(); 643using Control owner = new(); 644using Control control = new(); 793using Control owner = new(); 794using Control control = new(); 946using Control owner = new(); 1019using Control owner = new(); 1113using Control owner = new(); 1128owner = new Control(); 1134using Control control = new(); 1152control = new Control(); 1158using Control owner = new(); 1171using Control owner = new(); 1179using Control parent = new(); 1180using Control owner = new() 1191using Control grandparent = new(); 1192using Control parent = new() 1196using Control owner = new() 1207using Control owner = new(); 1208using Control child1 = new(); 1209using Control child2 = new(); 1210using Control child3 = new(); 1279using Control owner = new(); 1287using Control owner = new(); 1288using Control child1 = new(); 1289using Control child2 = new(); 1290using Control child3 = new(); 1337using Control owner = new(); 1338using Control child1 = new(); 1339using Control child2 = new(); 1340using Control child3 = new(); 1380using Control owner = new(); 1382using Control child1 = new(); 1383using Control child2 = new(); 1389Assert.False(collection.Contains(new Control())); 1405using Control owner = new(); 1406using Control child1 = new() 1410using Control child2 = new() 1414using Control child3 = new() 1437using Control owner = new(); 1438using Control child1 = new() 1442using Control child2 = new() 1446using Control child3 = new() 1450using Control grandchild1 = new() 1454using Control grandchild2 = new() 1458using Control grandchild3 = new() 1490using Control owner = new(); 1491using Control child1 = new() 1495using Control child2 = new() 1499using Control child3 = new() 1516using Control owner = new(); 1525using Control owner = new(); 1527using Control child1 = new(); 1528using Control child2 = new(); 1539using Control owner = new(); 1541using Control child1 = new(); 1542using Control child2 = new(); 1553using Control owner = new(); 1555using Control child1 = new(); 1556using Control child2 = new(); 1562Assert.Equal(-1, collection.GetChildIndex(new Control(), throwException: false)); 1568yield return new object[] { new Control() }; 1576using Control owner = new(); 1578using Control child1 = new(); 1579using Control child2 = new(); 1590using Control owner = new(); 1611using Control owner = new(); 1612using Control child1 = new(); 1613using Control child2 = new(); 1614using Control child3 = new(); 1650using Control owner = new(); 1651using Control child = new(); 1673using Control owner = new(); 1674using Control child1 = new(); 1675using Control child2 = new(); 1676using Control child3 = new(); 1706using Control owner = new(); 1707using Control child1 = new(); 1708using Control child2 = new(); 1709using Control child3 = new(); 1746using Control owner = new(); 1748using Control child1 = new(); 1749using Control child2 = new(); 1755Assert.Equal(-1, collection.IndexOf(new Control())); 1771using Control owner = new(); 1772using Control child1 = new() 1776using Control child2 = new() 1780using Control child3 = new() 1804using Control owner = new(); 1805using Control child1 = new() 1809using Control child2 = new() 1813using Control child3 = new() 1840using Control owner = new(); 1841using Control child1 = new() 1845using Control child2 = new() 1849using Control child3 = new() 1870using Control owner = new(); 1871using Control child1 = new(); 1872using Control child2 = new(); 1873using Control child3 = new(); 1892using Control owner = new(); 1903using Control owner = new(); 1904using Control child = new(); 1915using Control owner = new(); 1916using Control child1 = new(); 1917using Control child2 = new(); 1978using Control child1 = new(); 1979using Control child2 = new(); 2044using Control owner = new(); 2045using Control child1 = new(); 2046using Control child2 = new(); 2120using Control owner = new(); 2121using Control child1 = new(); 2122using Control child2 = new(); 2211using Control owner1 = new(); 2212using Control owner2 = new(); 2213using Control control1 = new(); 2214using Control control2 = new(); 2215using Control control3 = new(); 2239using Control owner = new(); 2240using Control control = new(); 2285using Control owner = new(); 2286using Control control = new(); 2343using Control owner = new(); 2344using Control control = new(); 2487using Control owner = new(); 2488using Control control = new(); 2619using Control owner = new(); 2683using Control owner = new(); 2769using Control owner = new(); 2770using Control child1 = new(); 2771using Control child2 = new(); 2847using Control owner = new(); 2848using Control child1 = new(); 2849using Control child2 = new(); 2905using Control owner = new(); 2916using Control owner = new(); 2917using Control child = new(); 2930using Control owner = new(); 2931using Control child1 = new() 2935using Control child2 = new() 2939using Control child3 = new() 3006using Control owner = new(); 3007using Control child1 = new() 3011using Control child2 = new() 3015using Control child3 = new() 3037using Control owner = new(); 3038using Control child1 = new(); 3039using Control child2 = new(); 3040using Control child3 = new(); 3105using Control owner = new(); 3106using Control child1 = new(); 3107using Control child2 = new(); 3108using Control child3 = new(); 3160using Control owner = new(); 3161using Control child1 = new(); 3162using Control child2 = new(); 3163using Control child3 = new(); 3239using Control owner = new(); 3240using Control child1 = new(); 3241using Control child2 = new(); 3242using Control child3 = new(); 3333using Control owner = new(); 3335using Control child2 = new(); 3336using Control child3 = new(); 3413using Control owner = new(); 3421using Control owner = new(); 3422using Control child = new(); 3433using Control owner = new(); 3434using Control control1 = new(); 3435using Control control2 = new(); 3507using Control owner = new(); 3516using Control owner = new(); 3517using Control child1 = new(); 3518using Control child2 = new(); 3578using Control owner = new(); 3590_layoutEngine = new Control().LayoutEngine;
System\Windows\Forms\ControlTests.cs (7)
292yield return new object[] { new Control(), string.Empty, string.Empty }; 293yield return new object[] { new Control(), "text", "text" }; 388yield return new object[] { new Control(), string.Empty, 0, 0, 0, 0, string.Empty }; 389yield return new object[] { new Control(), "text", 1, 2, 3, 4, "text" }; 574using Control parent = new(); 599using Control parent = new(); 1217public SubControl() : base()
System\Windows\Forms\ControlTests.Handlers.cs (53)
133using Control child1 = new(); 134using Control child2 = new(); 180using Control child1 = new() 184using Control child2 = new() 328using Control child1 = new(); 329using Control child2 = new(); 379using Control child1 = new() 383using Control child2 = new() 509using Control child1 = new(); 510using Control child2 = new(); 556using Control child1 = new() 560using Control child2 = new() 657using Control child1 = new(); 658using Control child2 = new(); 706using Control child1 = new() 710using Control child2 = new() 1015yield return new object[] { new ControlEventArgs(new Control()) }; 1107using Control child1 = new(); 1108using Control child2 = new(); 1156using Control child1 = new() 1160using Control child2 = new() 1504using Control child1 = new(); 1505using Control child2 = new(); 1551using Control child1 = new() 1555using Control child2 = new() 1739using Control child1 = new(); 1740using Control child2 = new(); 1788using Control child1 = new() 1792using Control child2 = new() 1960using Control child1 = new(); 1961using Control child2 = new(); 2007using Control child1 = new() 2011using Control child2 = new() 2619Control parent = new(); 2679Control parent = new(); 3137using Control parent = new(); 3891Control control = new() 3932Control control = new() 4109using Control parent = new() 5031using Control child1 = new(); 5032using Control child2 = new() 5081using Control child1 = new() 5085using Control child2 = new() 5362using Control child1 = new(); 5363using Control child2 = new(); 5580using Control parent = new(); 5667using Control parent = new(); 5721using Control grandchild1 = new(); 5722using Control child1 = new(); 5723using Control child2 = new(); 5797using Control grandchild1 = new(); 5798using Control child1 = new() 5802using Control child2 = new()
System\Windows\Forms\ControlTests.Internals.cs (39)
16using Control control = new(); 28using Control control = new() 40using Control control = new() 55using Control control = new() 74using Control control = new() 93using Control control = new(); 111using Control control = new() 152using Control control = new() 164using Control control = new() 176using Control control = new(); 188using Control control = new(); 200using Control control = new(); 208using Control control = new(); 209Control parent = new(); 220using Control control = new(); 222Control parent = new(); 232using Control control = new(); 241using Control control = new() 253using Control control = new() 265using Control control = new(); 266Control parent = new(); 277using Control control = new(); 287using Control control = new(); 288Control first = new() 292Control second = new() 296Control third = new() 322using Control control = new(); 323Control first = new() 327Control second = new() 331Control third = new() 351using Control control = new(); 352Control first = new() 356Control second = new() 360Control third = new() 379using Control control = new(); 380Control first = new() 384Control second = new() 388Control third = new() 407using Control control = new();
System\Windows\Forms\ControlTests.Methods.ClipboardTests.cs (2)
33using Control control = new(); 43using Control control = new();
System\Windows\Forms\ControlTests.Methods.cs (183)
136using Control parent = new(); 137using Control child1 = new(); 138using Control child2 = new(); 178using Control parent = new(); 179using Control child1 = new(); 180using Control child2 = new(); 233using Control parent = new(); 234using Control child1 = new(); 235using Control child2 = new(); 300using Control parent = new(); 302using Control child2 = new(); 518using Control parent = new(); 579using Control control = new() 705using Control parent = new(); 793using Control parent = new(); 794using Control control = new() 798using Control child1 = new() 802using Control child2 = new() 806using Control grandchild1 = new() 810using Control otherParent = new(); 811using Control otherControl = new() 815using Control emptyControl = new(); 858using Control parent = new(); 988using Control control = new(); 1033using Control parent = new(); 1036using Control control = new() 1086using Control control = new(); 1087using Control child1 = new(); 1088using Control child2 = new(); 1164using Control control = new(); 1211using Control control = new(); 1831using Control control = new(); 1839using Control control = new(); 1948using Control control = new(); 1957using Control control = new(); 2075using Control control = new(); 2095using Control control = new(); 2109using Control control = new(); 2116using Control grandparent = new(); 2117using Control parent = new() 2121using Control control = new() 2138using Control parent = new() 2142using Control control = new() 2159using Control control = new() 2177using Control parent = new() 2181using Control control = new() 2199using Control parent = new() 2203using Control control = new() 2220using Control cont = new(); 2221using Control first = new() 2225using Control second = new() 2229using Control third = new() 2248using Control cont = new(); 2249using Control first = new() 2253using Control second = new() 2257using Control third = new() 2276using Control cont = new(); 2277using Control first = new() 2281using Control second = new() 2285using Control third = new() 2304using Control cont = new(); 2305using Control first = new() 2309using Control second = new() 2313using Control third = new() 2342using Control control = new(); 2355using Control control = new() 2394using Control control = new() 2543.Returns(new Control()); 2879using Control control = new() 2894using Control control = new() 2970_layoutEngine = new Control().LayoutEngine; 3769using Control control = new(); 3794using Control control = new(); 3820using Control control = new(); 3849using Control control = new(); 3883using Control control = new(); 3919using Control control = new(); 3952using Control control = new(); 3985using Control control = new(); 4011using Control control = new(); 4038using Control control = new(); 4073using Control control = new(); 4103using Control control = new(); 4145using Control control = new(); 4154using Control control = new(); 4166using Control otherControl = new(); 4290using Control otherControlParent = new(); 4342using Control otherControl = new(); 4745using Control control = new(); 4799using Control parent = new(); 4800using Control control = new() 4834using Control parent = new(); 4928control.PerformLayout(new Control(), "OtherAffectedProperty"); 4932control.PerformLayout(new Control(), "OtherAffectedProperty"); 4951using Control control = new(); 4990yield return new object[] { new Control(), string.Empty }; 4991yield return new object[] { new Control(), "AffectedProperty" }; 4998using Control control = new(); 5054using Control parent = new(); 5055using Control control = new() 5087yield return new object[] { true, new Control(), string.Empty, 1 }; 5088yield return new object[] { true, new Control(), "AffectedProperty", 1 }; 5091yield return new object[] { false, new Control(), string.Empty, 0 }; 5092yield return new object[] { false, new Control(), "AffectedProperty", 0 }; 5099using Control parent = new(); 5150yield return new object[] { true, new Control(), string.Empty, 1 }; 5151yield return new object[] { true, new Control(), "AffectedProperty", 1 }; 5154yield return new object[] { false, new Control(), string.Empty, 0 }; 5155yield return new object[] { false, new Control(), "AffectedProperty", 0 }; 5202control.PerformLayout(new Control(), "OtherAffectedProperty"); 5206control.PerformLayout(new Control(), "OtherAffectedProperty"); 5225using Control control = new(); 5252control.PerformLayout(new Control(), "AffectedProperty"); 5267Assert.Throws<NullReferenceException>(() => control.PerformLayout(new Control(), "AffectedProperty")); 5345using Control parent = new(); 5522using Control parent = new(); 5575using Control parent = new(); 5623using Control parent = new(); 5723using Control parent = new(); 6014using Control parent = new(); 6222using Control parent = new(); 6308using Control control = new(); 6320using Control control = new(); 6361using Control control = new(); 6419using Control control = new(); 6439using Control control = new(); 6553yield return new object[] { new Control(), string.Empty, true, 1 }; 6554yield return new object[] { new Control(), "AffectedProperty", true, 1 }; 6557yield return new object[] { new Control(), string.Empty, false, 0 }; 6558yield return new object[] { new Control(), "AffectedProperty", false, 0 }; 6565using Control control = new(); 6593using Control control = new(); 6607control.PerformLayout(new Control(), "AnotherAffectedProperty"); 6623using Control control = new(); 6643using Control control = new(); 6673using Control control = new(); 6688control.PerformLayout(new Control(), "AnotherAffectedProperty"); 6704using Control control = new(); 6727using Control child = new(); 6756using Control control = new(); 6775using Control child = new(); 6802using Control control = new(); 7003using Control parent = new(); 7004using Control child1 = new(); 7005using Control child2 = new(); 7045using Control parent = new(); 7046using Control child1 = new(); 7047using Control child2 = new(); 7100using Control parent = new(); 7101using Control child1 = new(); 7102using Control child2 = new(); 7167using Control parent = new(); 7169using Control child2 = new(); 7288using Control parent = new(); 7661using Control parent = new(); 7918using Control parent = new(); 8518using Control parent = new(); 8775using Control parent = new(); 9315using Control parent = new(); 9613using Control parent = new(); 10099using Control parent = new(); 10202using Control control = new() 10220using Control control = new() 10251using Control control = new(); 10268using Control control = new(); 10298using Control control = new(); 10305using Control control = new(); 10317using Control control = new(); 11218using Control parent = new(); 11456using Control parent = new(); 11704using Control parent = new(); 11954using Control parent = new(); 12163using Control parent = new(); 12182using Control parent = new(); 12214using Control parent = new(); 12247using Control parent = new(); 12291using Control parent = new(); 12292using Control child1 = new(); 12338using Control parent = new(); 12527using Control control = new(); 12601using Control control = new(); 14222using Control grandparent = new(); 14310using Control grandparent = new();
System\Windows\Forms\ControlTests.Properties.cs (362)
23using Control control = new(); 39using Control control = new(); 83using Control control1 = new(); 111using Control control = new() 128using Control control = new() 145using Control control = new() 162using Control control = new() 179using Control control = new(); 187using Control control = new() 209using Control control = new(); 246using Control control = new(); 286using Control control = new(); 341using Control control = new(); 363using Control control = new() 414using Control parent = new(); 415using Control control = new() 459using Control grandparent = new(); 460using Control parent = new() 464using Control control = new() 560using Control parent = new(); 561using Control control = new() 679using Control grandparent = new(); 680using Control parent = new() 684using Control control = new() 771using Control control = new() 825using Control parent = new(); 826using Control control = new() 873using Control control = new(); 908using Control control = new() 923using Control control = new(); 950using Control parent = new(); 951using Control control = new() 1005using Control control = new() 1068using Control control = new(); 1111using Control parent = new(); 1112using Control control = new() 1194using Control control = new() 1233using Control control = new() 1250using Control control = new() 1293using Control child1 = new(); 1294using Control child2 = new(); 1295using Control control = new(); 1317using Control child1 = new() 1321using Control child2 = new() 1325using Control control = new(); 1353using Control control = new(); 1381using Control control = new(); 1416using Control control = new(); 1441using Control child1 = new(); 1442using Control child2 = new(); 1443using Control control = new(); 1521using Control child1 = new() 1525using Control child2 = new() 1529using Control control = new(); 1601using Control control = new(); 1609using Control control = new(); 1625using Control control = new(); 1641using Control control = new() 1664using Control control = new(); 1693using Control child1 = new(); 1694using Control child2 = new(); 1695using Control control = new(); 1717using Control child1 = new() 1721using Control child2 = new() 1725using Control control = new(); 1744using Control control = new(); 1786using Control control = new(); 1812using Control child1 = new(); 1813using Control child2 = new(); 1814using Control control = new(); 1899using Control child1 = new() 1903using Control child2 = new() 1907using Control control = new(); 2077using Control control = new(); 2112using Control control = new(); 2138using Control control = new(); 2146using Control parent = new() 2150using Control control = new() 2165using Control control = new() 2182using Control control = new() 2199using Control control = new() 2217using Control control = new(); 2259using Control child1 = new(); 2260using Control child2 = new(); 2261using Control control = new(); 2346using Control child1 = new() 2350using Control child2 = new() 2354using Control control = new(); 2697using Control parent = new(); 2908using Control parent = new(); 3051using Control control = new() 3067using Control control = new() 3082using Control parent = new() 3087using Control control = new() 3101using Control control = new() 3117using Control parent = new() 3122using Control control = new() 3134using Control control = new() 3156using Control control = new(); 3193using Control control = new() 3215using Control control = new(); 3251using Control control = new() 3288yield return new object[] { new Control(), Size.Empty }; 3330using Control control = new(); 3488using Control control = new(); 3542using Control control = new() 3560using Control control = new() 3578using Control control = new() 3593using Control control = new() 3609using Control control = new(); 3651yield return new object[] { new Control.ControlCollection(new Control()) }; 3678using Control control = new(); 3684using Control child = new(); 3698using Control control = new(); 3704using Control child = new(); 3718using Control control = new() 3734using Control parent = new() 3738using Control control = new() 3758using Control control = new() 3786using Control parent = new() 3812using Control control = new() 3829using Control control = new(); 3858using Control child1 = new(); 3859using Control child2 = new(); 3860using Control control = new(); 3882using Control child1 = new() 3886using Control child2 = new() 3890using Control control = new(); 3909using Control control = new(); 3951using Control child1 = new(); 3952using Control child2 = new(); 3953using Control control = new(); 4038using Control child1 = new() 4042using Control child2 = new() 4046using Control control = new(); 4130using Control control = new(); 4152using Control control = new() 4187using Control parent = new(); 4188using Control control = new() 4277using Control parent = new(); 4278using Control control = new() 4334using Control control = new() 4353using Control control = new(); 4387using Control control = new() 4426using Control control = new(); 4508using Control control = new() 4571using Control control = new() 4609using Control child1 = new(); 4610using Control child2 = new(); 4611using Control control = new() 4686using Control child1 = new() 4690using Control child2 = new() 4694using Control control = new() 4770using Control control = new(); 4786using Control control = new(); 4803using Control parent = new() 4807using Control control = new() 4827using Control control = new() 5026using Control control = new(); 5068using Control child1 = new(); 5069using Control child2 = new(); 5070using Control control = new(); 5155using Control child1 = new() 5159using Control child2 = new() 5163using Control control = new(); 5247using Control control = new(); 5272using Control control = new(); 5297using Control control = new() 5314using Control control = new() 5333using Control child1 = new(); 5334using Control child2 = new(); 5335using Control control = new(); 5357using Control child1 = new() 5361using Control child2 = new() 5365using Control control = new(); 5394using Control control = new(); 5422using Control control = new(); 5457using Control control = new(); 5482using Control child1 = new(); 5483using Control child2 = new(); 5484using Control control = new(); 5562using Control child1 = new() 5566using Control child2 = new() 5570using Control control = new(); 5643using Control control = new(); 5659using Control control = new(); 5674using Control cont = new(); 5974using Control parent = new(); 6209using Control parent = new(); 6367using Control control = new() 6384using Control control = new(); 6412using Control control = new(); 6448using Control control = new(); 6562using Control control = new(); 6575using Control control = new(); 6589using Control control = new() 6610using Control control = new(); 6641using Control control = new(); 6744using Control parent = new(); 6938using Control parent = new(); 7091using Control control = new(); 7149using Control control = new(); 7223using Control parent = new(); 7421using Control parent = new(); 7577using Control control = new(); 7601using Control control = new(); 7624using Control control = new(); 7677yield return new object[] { new Control(), new Padding(3) }; 7711using Control control = new(); 7731using Control parent = new(); 7732using Control control = new() 7761using Control control = new(); 7800using Control parent = new(); 7801using Control control = new() 7855using Control control = new(); 7871using Control control = new(); 7885yield return new object[] { new Control(), Size.Empty }; 7933using Control control = new(); 7955using Control control = new() 8001using Control control = new() 8032using Control control = new() 8057using Control control = new() 8104using Control parent = new(); 8105using Control control = new() 8159using Control parent = new(); 8160using Control control = new() 8202using Control control = new(); 8237using Control control = new() 8275using Control control = new() 8313using Control parent = new(); 8314using Control control = new() 8380using Control parent = new(); 8381using Control control = new() 8448using Control control = new(); 8472using Control control = new(); 8494yield return new object[] { new Control(), Size.Empty }; 8542using Control control = new(); 8586using Control control = new() 8639using Control control = new() 8670using Control control = new() 8701using Control control = new() 8748using Control parent = new(); 8749using Control control = new() 8809using Control parent = new(); 8810using Control control = new() 8874using Control control = new(); 8931using Control control = new() 8997using Control control = new() 9056using Control parent = new(); 9057using Control control = new() 9144using Control parent = new(); 9145using Control control = new() 9218using Control control = new(); 9242using Control control = new(); 9304using Control control = new() 9320using Control control = new() 9337using Control control = new() 9372using Control control = new() 9389yield return new object[] { new Control(), Padding.Empty }; 9417using Control control = new(); 9443using Control parent = new(); 9444using Control control = new() 9541using Control parent = new(); 9612using Control control = new(); 9650using Control control = new(); 9666using Control control = new(); 9681yield return new object[] { new Control() }; 9689using Control control = new() 9706using Control oldParent = new(); 9707using Control control = new() 9727using Control parent = new(); 9728using Control control = new() 9747using Control control = new(); 9775using Control parent = new(); 9776using Control control = new(); 9811using Control control = new(); 9819using Control child = new(); 9820using Control control = new(); 9830using Control parent = new(); 9841using Control control = new(); 9842using Control child = new() 9860using Control child = new() 9882using Control control = new() 9900using Control control = new() 9922using Control control = new(); 9952using Control control = new() 9986using Control control = new(); 10061using Control control = new() 10078using Control control = new() 10097using Control child1 = new(); 10098using Control child2 = new(); 10099using Control control = new(); 10121using Control child1 = new() 10125using Control child2 = new() 10129using Control control = new(); 10153using Control control = new(); 10184using Control control = new() 10215using Control control = new(); 10250using Control control = new(); 10275using Control child1 = new(); 10276using Control child2 = new() 10280using Control control = new(); 10358using Control child1 = new() 10362using Control child2 = new() 10366using Control control = new(); 10439using Control control = new(); 10447using Control control = new(); 10475using Control control = new(); 10653using Control control = new() 10670using Control control = new(); 10706using Control control = new() 10783using Control control = new(); 10959using Control control = new() 11373using Control parent = new(); 11618using Control parent = new(); 11758using Control control = new(); 11782using Control control = new(); 11808using Control control = new() 11824using Control control = new() 11862using Control control = new(); 11870using Control control = new() 11892using Control control = new(); 11928using Control control = new() 11967using Control control = new() 11984using Control control = new(); 12012using Control control = new(); 12048using Control control = new(); 12075using Control control = new(); 12178using Control parent = new(); 12370using Control parent = new(); 12523using Control control = new(); 12571using Control grandparent = new(); 12572using Control parent = new() 12576using Control control = new() 12590using Control parent = new() 12594using Control control = new() 12607using Control control = new() 12629using Control control = new(); 12630using Control child1 = new(); 12631using Control child2 = new(); 12660using Control control = new(); 12700using Control parent = new() 12704using Control item = new() 12719using Control control = new() 12741using Control parent = new(); 12742using Control control = new() 12815using Control parent = new(); 12816using Control control = new() 12873using Control control = new() 12911using Control child1 = new(); 12912using Control child2 = new(); 12913using Control control = new() 12988using Control child1 = new() 12992using Control child2 = new() 12996using Control control = new() 13072using Control control = new(); 13088using Control control = new(); 13393using Control parent = new(); 13628using Control parent = new(); 13767using Control cont = new(); 13779using Control control = new() 13794using Control control = new();
System\Windows\Forms\DataGridViewTests.cs (8)
115using Control parent = new(); 257using Control parent = new(); 819yield return new object[] { new Control() }; 844using Control oldParent = new(); 865using Control parent = new(); 911using Control parent = new(); 1032using Control parent = new(); 1181using Control parent = new();
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (2)
1589using Control parent = new(); 1880using Control parent = new();
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
805using Control result = new();
System\Windows\Forms\ErrorProviderTests.cs (21)
858yield return new object[] { new Control(), true }; 873using Control control = new(); 896using Control control = new(); 926using Control control = new(); 955using Control control = new(); 973using Control control = new(); 991using Control control = new(); 1047using Control control = new(); 1074using Control control = new(); 1098using Control control = new(); 1107using Control control = new(); 1132yield return new object[] { blinkStyle, new SubControl { Parent = new() }, error, error ?? string.Empty }; 1142using Control originalParent = new(); 1143using Control newParent = new(); 1229using Control control1 = new(); 1240using Control control1 = new(); 1253using Control control1 = new(); 1266using Control control1 = new(); 1279using Control control1 = new(); 1295using Control control1 = new(); 1308using Control control1 = new();
System\Windows\Forms\FlowLayoutPanelTests.cs (8)
217using Control extendee = new() 229yield return new object[] { new Control() }; 230yield return new object[] { new Control { Parent = new() } }; 252using Control child = new(); 320using Control child = new(); 356using Control parent = new(); 357using Control child = new()
System\Windows\Forms\FlowLayoutSettingsTests.cs (4)
102Assert.False(settings.GetFlowBreak(new Control())); 136using Control child = new(); 176using Control parent = new(); 177using Control child = new()
System\Windows\Forms\FormTests.cs (7)
928yield return new object[] { new Control() }; 956using Control oldParent = new(); 1107yield return new object[] { new Control() }; 1139using Control parent = new(); 1193using Control parent = new(); 1244using Control parent = new(); 2641using Control control = new();
System\Windows\Forms\GroupBoxTests.cs (8)
269using Control parent = new(); 417using Control parent = new(); 927using Control child = new() 1220using Control parent = new(); 1317using Control parent = new(); 1984using Control parent = new(); 2029using Control parent = new() 2045using Control parent = new()
System\Windows\Forms\HelpProviderTests.cs (21)
52using Control control = new(); 77yield return new object[] { new Control(), true }; 92Assert.Null(provider.GetHelpKeyword(new Control())); 106Assert.Equal(HelpNavigator.AssociateIndex, provider.GetHelpNavigator(new Control())); 120Assert.Null(provider.GetHelpString(new Control())); 134Assert.False(provider.GetShowHelp(new Control())); 149using Control control = new(); 160using Control control = new(); 189using Control control = new(); 223using Control control = new(); 255using Control control = new(); 290using Control control = new(); 307using Control control = new(); 325using Control control = new(); 352Assert.Throws<InvalidEnumArgumentException>("navigator", () => provider.SetHelpNavigator(new Control(), navigator)); 360using Control control = new(); 379using Control control = new(); 399using Control control = new(); 426using Control control = new(); 452using Control control = new(); 492Assert.False(provider.ShouldSerializeShowHelp(new Control()));
System\Windows\Forms\HtmlDocumentTests.cs (96)
20using Control parent = new(); 52using Control parent = new(); 84using Control parent = new(); 108using Control parent = new(); 138using Control parent = new(); 158using Control parent = new(); 178using Control parent = new(); 195using Control parent = new(); 212using Control parent = new(); 237using Control parent = new(); 269using Control parent = new(); 301using Control parent = new(); 331using Control parent = new(); 361using Control parent = new(); 378using Control parent = new(); 395using Control parent = new(); 420using Control parent = new(); 437using Control parent = new(); 472using Control parent = new(); 487using Control parent = new(); 502using Control parent = new(); 524using Control parent = new(); 539using Control parent = new(); 555using Control parent = new(); 577using Control parent = new(); 592using Control parent = new(); 606using Control parent = new(); 630using Control parent = new(); 664using Control parent = new(); 678using Control parent = new(); 693using Control parent = new(); 717using Control parent = new(); 749using Control parent = new(); 781using Control parent = new(); 803using Control parent = new(); 834using Control parent = new(); 854using Control parent = new(); 870using Control parent = new(); 890using Control parent = new(); 906using Control parent = new(); 938using Control parent = new(); 970using Control parent = new(); 992using Control parent = new(); 1022using Control parent = new(); 1042using Control parent = new(); 1058using Control parent = new(); 1083using Control parent = new(); 1106using Control parent = new(); 1130using Control parent = new(); 1167using Control parent = new(); 1181using Control parent = new(); 1196using Control parent = new(); 1218using Control parent = new(); 1248using Control parent = new(); 1269using Control parent = new(); 1301using Control parent = new(); 1333using Control parent = new(); 1355using Control parent = new(); 1385using Control parent = new(); 1404using Control parent = new(); 1466using Control parent = new(); 1504using Control parent = new(); 1522using Control parent = new(); 1542using Control parent = new(); 1559using Control parent = new(); 1575using Control parent = new(); 1603using Control parent = new(); 1620using Control parent = new(); 1637using Control parent = new(); 1660using Control parent = new(); 1678using Control parent = new(); 1693using Control parent = new(); 1712using Control parent = new(); 1730using Control parent = new(); 1744using Control parent = new(); 1761using Control parent = new(); 1786using Control parent = new(); 1806using Control parent = new(); 1820using Control parent = new(); 1838using Control parent = new(); 1877using Control parent = new(); 1904using Control parent = new(); 1921using Control parent = new(); 1938using Control parent = new(); 1956using Control parent = new(); 1976using Control parent = new(); 1997using Control parent = new(); 2035using Control parent = new(); 2073using Control parent = new(); 2111using Control parent = new(); 2149using Control parent = new(); 2187using Control parent = new(); 2225using Control parent = new(); 2263using Control parent = new(); 2301using Control parent = new(); 2339using Control parent = new();
System\Windows\Forms\HtmlElementTests.cs (127)
20using Control parent = new(); 40using Control parent = new(); 57using Control parent = new(); 76using Control parent = new(); 91using Control parent = new(); 106using Control parent = new(); 122using Control parent = new(); 141using Control parent = new(); 158using Control parent = new(); 180using Control parent = new(); 198using Control parent = new(); 214using Control parent = new(); 236using Control parent = new(); 275using Control parent = new(); 290using Control parent = new(); 308using Control parent = new(); 323using Control parent = new(); 341using Control parent = new(); 366using Control parent = new(); 397using Control parent = new(); 412using Control parent = new(); 431using Control parent = new(); 457using Control parent = new(); 488using Control parent = new(); 503using Control parent = new(); 518using Control parent = new(); 533using Control parent = new(); 552using Control parent = new(); 578using Control parent = new(); 609using Control parent = new(); 624using Control parent = new(); 639using Control parent = new(); 654using Control parent = new(); 670using Control parent = new(); 696using Control parent = new(); 729using Control parent = new(); 744using Control parent = new(); 762using Control parent = new(); 780using Control parent = new(); 798using Control parent = new(); 814using Control parent = new(); 829using Control parent = new(); 853using Control parent = new(); 884using Control parent = new(); 915using Control parent = new(); 930using Control parent = new(); 945using Control parent = new(); 964using Control parent = new(); 990using Control parent = new(); 1021using Control parent = new(); 1036using Control parent = new(); 1057using Control parent = new(); 1075using Control parent = new(); 1093using Control parent = new(); 1117using Control parent = new(); 1147using Control parent = new(); 1165using Control parent = new(); 1183using Control parent = new(); 1207using Control parent = new(); 1237using Control parent = new(); 1256using Control parent = new(); 1275using Control parent = new(); 1304using Control parent = new(); 1337using Control parent = new(); 1355using Control parent = new(); 1379using Control parent = new(); 1409using Control parent = new(); 1424using Control parent = new(); 1456using Control parent = new(); 1494using Control parent = new(); 1511using Control parent = new(); 1576using Control parent = new(); 1617using Control parent = new(); 1659using Control parent = new(); 1698using Control parent = new(); 1717using Control parent = new(); 1737using Control parent = new(); 1766using Control parent = new(); 1784using Control parent = new(); 1802using Control parent = new(); 1824using Control parent = new(); 1842using Control parent = new(); 1858using Control parent = new(); 1890using Control parent = new(); 1910using Control parent = new(); 1925using Control parent = new(); 1950using Control parent = new(); 1965using Control parent = new(); 1988using Control parent = new(); 2026using Control parent = new(); 2070using Control parent = new(); 2108using Control parent = new(); 2152using Control parent = new(); 2188using Control parent = new(); 2232using Control parent = new(); 2267using Control parent = new(); 2311using Control parent = new(); 2327using Control parent = new(); 2343using Control parent = new(); 2363using Control parent = new(); 2382using Control parent = new(); 2400using Control parent = new(); 2421using Control parent = new(); 2440using Control parent = new(); 2465using Control parent = new(); 2480using Control parent = new(); 2497using Control parent = new(); 2520using Control parent = new(); 2544using Control parent = new(); 2585using Control parent = new(); 2626using Control parent = new(); 2667using Control parent = new(); 2708using Control parent = new(); 2749using Control parent = new(); 2790using Control parent = new(); 2831using Control parent = new(); 2872using Control parent = new(); 2913using Control parent = new(); 2954using Control parent = new(); 2995using Control parent = new(); 3036using Control parent = new(); 3077using Control parent = new(); 3118using Control parent = new(); 3159using Control parent = new(); 3200using Control parent = new(); 3241using Control parent = new(); 3282using Control parent = new();
System\Windows\Forms\HtmlWindowTests.cs (4)
17using Control parent = new(); 33using Control parent = new(); 49using Control parent = new(); 70using Control parent = new();
System\Windows\Forms\Layout\FlowLayoutTests.cs (28)
42using Control child1 = new() 47using Control child2 = new() 52using Control largeChild = new() 57using Control emptyChild = new() 61using Control emptyChildWithMargin = new() 66using Control child3 = new() 71using Control child4 = new() 103using Control child1 = new() 108using Control child2 = new() 113using Control largeChild = new() 118using Control emptyChild = new() 122using Control emptyChildWithMargin = new() 127using Control child3 = new() 132using Control child4 = new() 164using Control child1 = new() 169using Control child2 = new() 174using Control largeChild = new() 179using Control emptyChild = new() 183using Control emptyChildWithMargin = new() 188using Control child3 = new() 193using Control child4 = new() 225using Control child1 = new() 230using Control child2 = new() 235using Control largeChild = new() 240using Control emptyChild = new() 244using Control emptyChildWithMargin = new() 249using Control child3 = new() 254using Control child4 = new()
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (58)
161using Control child = new(); 170using Control child = new(); 211using Control child = new(); 221using Control child = new(); 231using Control child = new(); 241using Control child = new(); 253using Control child = new(); 260using Control child = new(); 301using Control child = new(); 310using Control child = new(); 319using Control child = new(); 354using Control child = new(); 361using Control child = new(); 402using Control child = new(); 411using Control child = new(); 462using Control child = new(); 499using Control parent = new(); 500using Control child = new() 552using Control child = new(); 574using Control parent = new(); 575using Control child = new() 623using Control child = new(); 637using Control child = new(); 686using Control child = new(); 718using Control parent = new(); 719using Control child = new() 775using Control child = new(); 801using Control parent = new(); 802using Control child = new() 843using Control child = new(); 857using Control child = new(); 924using Control child = new(); 953using Control parent = new(); 954using Control child = new() 1008using Control child = new(); 1032using Control parent = new(); 1033using Control child = new() 1074using Control child = new(); 1088using Control child = new(); 1162using Control child = new(); 1194using Control parent = new(); 1195using Control child = new() 1251using Control child = new(); 1277using Control parent = new(); 1278using Control child = new() 1319using Control child = new(); 1333using Control child = new(); 1400using Control child = new(); 1429using Control parent = new(); 1430using Control child = new() 1484using Control child = new(); 1508using Control parent = new(); 1509using Control child = new() 1550using Control child = new(); 1564using Control child = new(); 1662using Control controlWithName = new() 1666using Control controlWithDefaultName = new(); 1779using Control controlWithName = new() { Name = "name" };
System\Windows\Forms\LayoutEventArgsTests.cs (3)
16yield return new object[] { new Control(), "" }; 33yield return new object[] { new Control(), "" }; 34yield return new object[] { new Control(), "affectedProperty" };
System\Windows\Forms\ListBoxTests.cs (1)
930using Control parent = new();
System\Windows\Forms\MdiClientTests.cs (7)
181using Control parent = new() 260using Control parent = new() 376using Control parent = new() 420using Control parent = new() 698using Control parent = new(); 847using Control parent = new() 1009using Control parent = new()
System\Windows\Forms\MenuStripTests.cs (1)
699using Control parent = new();
System\Windows\Forms\MixedDpiHostingTests.cs (1)
29using Control control = new();
System\Windows\Forms\NativeWindowTests.cs (12)
22using Control control = new(); 51using Control control = new(); 88using Control control = new(); 145using Control control = new(); 174using Control control = new(); 238using Control control = new(); 295using Control control = new(); 340using Control control = new(); 406using Control control = new(); 416using Control control = new(); 428using Control control = new(); 474using Control control = new();
System\Windows\Forms\PanelTests.cs (5)
257using Control parent = new(); 354_layoutEngine = new Control().LayoutEngine; 405using Control parent = new(); 614using Control child = new() 629using Control child = new()
System\Windows\Forms\PictureBoxTests.cs (7)
240using Control control = new() 259using Control control = new(); 277using Control control = new() 1119yield return new object[] { new Control() }; 1142using Control oldParent = new(); 1161using Control parent = new(); 1178using Control parent = new();
System\Windows\Forms\ReadOnlyControlCollectionTests.cs (1)
13using Control owner = new();
System\Windows\Forms\RichTextBoxTests.cs (8)
462using Control parent = new(); 679using Control control = new(); 2133using Control parent = new(); 2189using Control parent = new(); 2964using Control parent = new(); 3087using Control parent = new(); 7102using Control parent = new(); 7330using Control parent = new();
System\Windows\Forms\ScreenTests.cs (3)
68yield return new object[] { new Control() }; 70Control createdControl = new(); 101using Control control = new();
System\Windows\Forms\ScrollableControlTests.cs (6)
1394yield return new object[] { true, new LayoutEventArgs(affectedControl = new Control(), "affectedProperty"), 2, affectedControl }; 1398yield return new object[] { false, new LayoutEventArgs(affectedControl = new Control(), "affectedProperty"), 1, affectedControl }; 1570Func<Control> controlFactory = () => new Control 1665static Control CreateControl() => new() 1823using Control parent = new() 2486yield return new object[] { true, true, true, new Size(70, 80), new Control(), new Rectangle(0, 0, 70, 80) };
System\Windows\Forms\SplitterPanelTests.cs (4)
216using Control parent = new(); 277using Control parent = new(); 715yield return new object[] { new Control() }; 739using Control parent = new();
System\Windows\Forms\SplitterTests.cs (12)
1142using Control parent = new() 1197using Control parent = new() 1202using Control child = new() 1242using Control parent = new() 1247using Control child = new() 1314using Control parent = new() 1361using Control parent = new() 1366using Control child = new() 2009using Control parent = new() 2014using Control child = new() 2110using Control parent = new() 2115using Control child = new()
System\Windows\Forms\StatusStripTests.cs (1)
1134yield return new object[] { layoutStyle, dock, new LayoutEventArgs(new Control(), "AffectedProperty") };
System\Windows\Forms\TabControl.ControlCollectionTests.cs (3)
877using Control value = new(); 1457using Control value1 = new(); 1458using Control value2 = new();
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (8)
1086yield return new object[] { new Control() }; 1590Assert.False(iList.Contains(new Control())); 1602Assert.False(iList.Contains(new Control())); 1895Assert.Equal(-1, iList.IndexOf(new Control())); 1907Assert.Equal(-1, iList.IndexOf(new Control())); 3135yield return new object[] { new Control() }; 3932yield return new object[] { new Control() }; 4797yield return new object[] { new Control() };
System\Windows\Forms\TableLayoutControlCollectionTests.cs (3)
34using Control child = new(); 46using Control child = new(); 58using Control child = new();
System\Windows\Forms\TableLayoutPanelTests.cs (62)
345using Control child = new(); 365using Control child = new(); 499using Control controlWithName = new() { Name = "name" }; 500using Control controlWithDefaultName = new(); 648using Control child = new(); 663using Control child = new(); 672using Control child = new(); 681using Control child = new(); 696using Control child = new(); 737using Control child = new(); 777using Control child = new(); 797using Control child = new() 820using Control child = new() 842using Control otherChild = new(); 843using Control child = new() 890using Control child = new(); 904using Control child = new(); 916using Control child = new(); 934using Control child = new(); 1142using Control child = new(); 1322yield return new object[] { new LayoutEventArgs(new Control(), null) }; 1323yield return new object[] { new LayoutEventArgs(new Control(), string.Empty) }; 1324yield return new object[] { new LayoutEventArgs(new Control(), "ChildIndex") }; 1325yield return new object[] { new LayoutEventArgs(new Control(), "Visible") }; 1326yield return new object[] { new LayoutEventArgs(new Control(), "Items") }; 1327yield return new object[] { new LayoutEventArgs(new Control(), "Rows") }; 1328yield return new object[] { new LayoutEventArgs(new Control(), "Columns") }; 1329yield return new object[] { new LayoutEventArgs(new Control(), "RowStyles") }; 1330yield return new object[] { new LayoutEventArgs(new Control(), "ColumnStyles") }; 1331yield return new object[] { new LayoutEventArgs(new Control(), "TableIndex") }; 1332yield return new object[] { new LayoutEventArgs(new Control(), "GrowStyle") }; 1333yield return new object[] { new LayoutEventArgs(new Control(), "CellBorderStyle") }; 1334yield return new object[] { new LayoutEventArgs(new Control(), "LayoutSettings") }; 1335yield return new object[] { new LayoutEventArgs(new Control(), "NoSuchProperty") }; 1507using Control child1 = new(); 1512using Control child2 = new(); 1557using Control child = new(); 1593using Control parent = new(); 1594using Control child = new() 1644using Control child = new(); 1668using Control child = new(); 1699using Control parent = new(); 1700using Control child = new() 1750using Control child = new(); 1770Assert.Throws<ArgumentOutOfRangeException>("column", () => control.SetColumn(new Control(), -2)); 1779using Control child = new(); 1808using Control parent = new(); 1809using Control child = new() 1859using Control child = new(); 1884Assert.Throws<ArgumentOutOfRangeException>("value", () => control.SetColumnSpan(new Control(), value)); 1895using Control child = new(); 1926using Control parent = new(); 1927using Control child = new() 1977using Control child = new(); 1997Assert.Throws<ArgumentOutOfRangeException>("row", () => control.SetRow(new Control(), -2)); 2006using Control child = new(); 2035using Control parent = new(); 2036using Control child = new() 2086using Control child = new(); 2110Assert.Throws<ArgumentOutOfRangeException>("value", () => control.SetRowSpan(new Control(), value)); 2116using Control extendee = new(); 2128yield return new object[] { new Control() };
System\Windows\Forms\TabPageTests.cs (6)
2615using Control parent = new(); 3816using Control parent = new() 3820using Control control = new() 3832using Control grandparent = new(); 3833using Control parent = new() 3837using Control control = new()
System\Windows\Forms\TabPageTests.TabPageControlCollection.cs (2)
30using Control control1 = new(); 31using Control control2 = new();
System\Windows\Forms\ToolStripComboBoxTests.cs (1)
98using Control control = new();
System\Windows\Forms\ToolStripContentPanelTests.cs (3)
496using Control parent = new(); 557using Control parent = new(); 636using Control parent = new()
System\Windows\Forms\ToolStripControlHostTests.cs (167)
20yield return new object[] { new Control() }; 23new Control 41yield return new object[] { new Control { Enabled = false } }; 42yield return new object[] { new Control { Visible = false } }; 139using Control c = new(); 158using Control c = new(); 169using Control c = new(); 188using Control c = new(); 199using Control c = new(); 218using Control c = new(); 229using Control c = new(); 249using Control c = new(); 257using Control c = new(); 268using Control c = new(); 287using Control c = new(); 323using Control c = new(); 334using Control c = new(); 351using Control c = new(); 365using Control c = new(); 382using Control c = new(); 391using Control c = new(); 410using Control c = new(); 429using Control c = new(); 440using Control c = new(); 451using Control c = new(); 470using Control c = new(); 494using Control c = new() 508using Control c = new(); 518using Control c = new(); 543using Control c = new(); 557using Control c = new(); 569using Control c = new(); 580using Control c = new(); 595using Control c = new(); 614using Control c = new(); 626using Control c = new(); 640using Control c = new(); 654using Control c = new(); 664using Control c = new(); 678using Control c = new(); 700using Control c = new() 725using Control c = new(); 745using Control c = new(); 753using Control c = new(); 764using Control c = new(); 781using Control c = new(); 817using Control c = new(); 826using Control c = new(); 843using Control c = new(); 866using Control c = new(); 893using Control c = new(); 928using Control c = new(); 938using Control c = new(); 948using Control c = new(); 968using Control c = new(); 989using Control c = new(); 1001using Control c = new(); 1027using Control c = new(); 1041using Control c = new(); 1067using Control c = new(); 1076using Control c = new(); 1087using Control c = new(); 1106using Control c = new(); 1142using Control c = new(); 1153using Control c = new(); 1170using Control c = new(); 1184using Control c = new(); 1201using Control c = new(); 1222using Control c = new(); 1244using Control c = new(); 1264using Control c = new(); 1275using Control c = new(); 1297using Control c = new(); 1319using Control c = new(); 1348using Control c = new(); 1389using Control c = new(); 1457using Control c = new(); 1532using Control c = new(); 1548using Control c = new(); 1559using Control c = new(); 1579using Control c = new(); 1598using Control c = new(); 1635using Control c = new(); 1644using Control c = new(); 1673using Control c = new(); 1687using Control c = new(); 1716using Control c = new(); 1727using Control c = new(); 1749using Control c = new(); 1772using Control c = new(); 1818using Control c = new(); 1839using Control c = new(); 1860using Control c = new(); 1882using Control c = new(); 1918using Control c = new(); 1947using Control c = new(); 1970using Control c = new(); 1988using Control c = new(); 2009using Control c = new(); 2028using Control c = new(); 2048using Control c = new(); 2070using Control c = new(); 2089using Control c = new(); 2109using Control c = new(); 2129using Control c = new(); 2161using Control c = new(); 2180using Control c = new(); 2206using Control c = new() 2230using Control c = new(); 2251using Control c = new(); 2270using Control c = new(); 2307using Control c = new(); 2325using Control c = new(); 2342using Control c = new(); 2358using Control c = new(); 2367using Control c = new(); 2387using Control c = new(); 2408using Control c = new(); 2438using Control c = new(); 2474using Control c = new(); 2512using Control c = new(); 2532using Control c = new(); 2550using Control c = new(); 2565using Control c = new(); 2577using Control c = new(); 2619using Control c = new(); 2661using Control c = new(); 2693using Control c = new(); 2703using Control c = new(); 2723using Control c = new() 2738using Control c = new() 2756using Control c = new(); 2770using Control c = new() 2794using Control c = new(); 2808using Control c = new(); 2833using Control c = new(); 2858using Control c = new() 2876using Control c = new(); 2901using Control c = new(); 2926using Control c = new(); 2951using Control c = new(); 2964using Control c = new(); 2989using Control c = new(); 3014using Control c = new(); 3059using Control c = new(); 3078using Control c = new(); 3102using Control c = new(); 3171using Control controlParent = new(); 3172using Control c = new() 3246using Control c = new(); 3267using Control c = new(); 4138using Control c = new(); 4147using Control c = new(); 4172using Control c = new(); 4201using Control c = new(); 4242using Control c = new(); 4258using Control c = new(); 4302using Control c = new(); 4317using Control c = new(); 4358using Control c = new(); 4390using Control c = new(); 4413using Control c = new(); 4423using Control c = new(); 4446using Control c = new(); 4457using Control c = new(); 4491using Control c = new(); 4527using Control c = new();
System\Windows\Forms\ToolStripDropDownTests.cs (19)
703using Control parent = new(); 1325using Control parent = new() 1357using Control parent = new() 1487using Control parent = new() 2329using Control sourceControl = new() 2361using Control sourceControl = new() 2912using Control parent = new(); 3092using Control sourceControl = new() 3373using Control sourceControl = new() 3432using Control sourceControl = new() 4138yield return new object[] { true, new LayoutEventArgs(new Control(), "affectedProperty"), 2 }; 4142yield return new object[] { false, new LayoutEventArgs(new Control(), "affectedProperty"), 1 }; 4188yield return new object[] { autoSize, new LayoutEventArgs(new Control(), "affectedProperty") }; 4331yield return new object[] { true, new LayoutEventArgs(new Control(), "affectedProperty"), 2, 3 }; 4335yield return new object[] { false, new LayoutEventArgs(new Control(), "affectedProperty"), 1, 1 }; 4496yield return new object[] { true, new LayoutEventArgs(new Control(), "affectedProperty"), 2, 3 }; 4500yield return new object[] { false, new LayoutEventArgs(new Control(), "affectedProperty"), 1, 1 }; 4991using Control control = new(); 5023using Control control = new();
System\Windows\Forms\ToolStripPanel.ToolStripPanelControlCollection.XYComparerTests.cs (2)
11private readonly Control _control1 = new() { Bounds = new Rectangle(10, 20, 100, 100) }; 12private readonly Control _control2 = new() { Bounds = new Rectangle(10, 10, 100, 100) };
System\Windows\Forms\ToolStripTests.cs (12)
914using Control parent = new(); 1086using Control parent = new() 1403using Control parent = new() 1876using Control parent = new() 1907using Control parent = new() 2457using Control parent = new(); 2921using Control parent = new(); 5033yield return new object[] { new ControlEventArgs(new Control()) }; 5912Control control = new() 5960Control control = new() 6162using Control parent = new() 6921using Control parent = new();
System\Windows\Forms\ToolStripTextBoxTests.cs (1)
36Control control = new();
System\Windows\Forms\ToolTipTests.cs (8)
624yield return new object[] { new Control(), true }; 638yield return new object[] { new Control() }; 652using Control control = new(); 675using Control control = new(); 696using Control control = new(); 723using Control control = new(); 751using Control control = new(); 809using Control topLevelControl = new();
System\Windows\Forms\UnsupportedTypesTests.cs (2)
81using Control control = new(); 94using Control control = new();
System\Windows\Forms\UpDownBaseTests.cs (1)
1966yield return new object[] { borderStyle, rightToLeft, upDownAlign, new LayoutEventArgs(new Control(), "affectedProperty") };
System\Windows\Forms\UserControlTests.cs (14)
314using Control parent = new(); 362using Control parent = new(); 469_layoutEngine = new Control().LayoutEngine; 520using Control parent = new(); 1262using Control child1 = new(); 1263using Control grandchild1 = new(); 1266using Control grandchild2 = new(); 1488using Control child1 = new(); 1489using Control grandchild1 = new(); 1492using Control grandchild2 = new(); 1722using Control child1 = new(); 1723using Control child2 = new(); 1752using Control child1 = new(); 1753using Control child2 = new();
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (3)
356using Control childControl = new(); 383using Control childControl = new(); 394using Control childControl = new();
System\Windows\Forms\WebBrowserContainerTests.cs (3)
16using Control control = new() 33using Control control = new() 98using Control control = new()
System\Windows\Forms\WebBrowserTests.cs (136)
161using Control parent = new(); 189using Control parent = new(); 228using Control parent = new(); 242using Control parent = new(); 254using Control parent = new(); 292using Control parent = new(); 328using Control parent = new(); 341using Control parent = new(); 353using Control parent = new(); 373using Control parent = new(); 398using Control parent = new(); 412using Control parent = new(); 440using Control parent = new(); 456using Control parent = new(); 478using Control parent = new(); 490using Control parent = new(); 511using Control parent = new(); 525using Control parent = new(); 546using Control parent = new(); 558using Control parent = new(); 570using Control parent = new(); 595using Control parent = new(); 607using Control parent = new(); 628using Control parent = new(); 642using Control parent = new(); 663using Control parent = new(); 675using Control parent = new(); 709using Control parent = new(); 732using Control parent = new(); 831using Control parent = new(); 843using Control parent = new(); 864using Control parent = new(); 881using Control parent = new(); 900using Control parent = new(); 912using Control parent = new(); 933using Control parent = new(); 947using Control parent = new(); 967using Control parent = new(); 979using Control parent = new(); 1000using Control parent = new(); 1014using Control parent = new(); 1033using Control parent = new(); 1045using Control parent = new(); 1066using Control parent = new(); 1109using Control parent = new(); 1123using Control parent = new(); 1142using Control parent = new(); 1154using Control parent = new(); 1175using Control parent = new(); 1189using Control parent = new(); 1201using Control parent = new(); 1239using Control parent = new(); 1292using Control parent = new(); 1419using Control parent = new(); 1438using Control parent = new() 1460using Control parent = new(); 1480using Control parent = new(); 1499using Control parent = new() 1521using Control parent = new(); 1596using Control parent = new(); 1610using Control parent = new(); 1629using Control parent = new(); 1641using Control parent = new(); 1662using Control parent = new(); 1676using Control parent = new(); 1688using Control parent = new(); 1726using Control parent = new(); 1760using Control parent = new(); 1773using Control parent = new(); 1811using Control parent = new(); 1847using Control parent = new(); 1861using Control parent = new(); 1880using Control parent = new(); 1892using Control parent = new(); 1913using Control parent = new(); 1927using Control parent = new(); 1946using Control parent = new(); 1958using Control parent = new(); 1970using Control parent = new(); 2065using Control parent = new(); 2096using Control parent = new(); 2108using Control parent = new(); 2120using Control parent = new(); 2278using Control parent = new(); 2358using Control parent = new(); 2385using Control parent = new(); 2443using Control parent = new(); 2463using Control parent = new(); 2487using Control parent = new(); 2574using Control parent = new(); 2677using Control parent = new(); 2721using Control parent = new(); 2866using Control parent = new(); 2887using Control parent = new(); 2967using Control parent = new(); 2989using Control parent = new(); 3004using Control parent = new(); 3082using Control parent = new(); 3104using Control parent = new(); 3119using Control parent = new(); 3131using Control parent = new(); 3153using Control parent = new(); 3168using Control parent = new(); 3180using Control parent = new(); 3192using Control parent = new(); 3281using Control parent = new(); 3304using Control parent = new(); 3399using Control parent = new(); 3422using Control parent = new(); 3470using Control parent = new(); 3486using Control parent = new(); 3604Control parent = new(); 3644using Control parent = new(); 3656using Control parent = new(); 3921using Control parent = new(); 3943using Control parent = new(); 3958using Control parent = new(); 4016using Control parent = new(); 4088using Control parent = new(); 4105using Control parent = new(); 4165using Control parent = new(); 4223using Control parent = new(); 4246using Control parent = new(); 4261using Control parent = new(); 4283using Control parent = new(); 4298using Control parent = new(); 4320using Control parent = new(); 4335using Control parent = new(); 4357using Control parent = new(); 4372using Control parent = new(); 4394using Control parent = new(); 4409using Control parent = new(); 4431using Control parent = new(); 4446using Control parent = new(); 4525using Control control = new(); 4599using Control control = new();
TextBoxBaseTests.cs (10)
287using Control parent = new(); 581using Control parent = new(); 2008using Control parent = new(); 2067using Control parent = new(); 3727using Control parent = new(); 3777using Control parent = new(); 5863using Control parent = new(); 6042using Control parent = new(); 6974using Control control = new(); 7055using Control control = new();
WebBrowserBaseTests.cs (2)
239using Control parent = new(); 814using Control parent = new()
System.Windows.Forms.TestUtilities (1)
CommonTestHelperEx.cs (1)
145new LayoutEventArgs(new Control(), "affectedProperty")
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
64: base()