189 references to Container
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ControlCommandSet.cs (1)
1461
if (ctl.Site is not null && ctl.Site.Container == ctl.
Container
)
System.Windows.Forms.Design.Tests (72)
System\ComponentModel\Design\ByteViewerTests.cs (1)
50
Assert.Null(control.
Container
);
System\ComponentModel\Design\DesignerHostTests.cs (33)
283
Assert.Same(host, component1.
Container
);
294
Assert.Same(host, component2.
Container
);
305
Assert.Same(host, component3.
Container
);
316
Assert.Same(host, component4.
Container
);
338
Assert.Same(host, component1.
Container
);
347
Assert.Same(host, component2.
Container
);
358
Assert.Same(host, component3.
Container
);
369
Assert.Same(host, component4.
Container
);
1624
Assert.Same(host.Container, component.
Container
);
1630
Assert.Same(host.Container, component.
Container
);
1638
Assert.Same(host.Container, component.
Container
);
1689
Assert.Null(component.
Container
);
1693
Assert.Null(component.
Container
);
1715
Assert.Same(host.Container, component.
Container
);
1719
Assert.Same(host.Container, component.
Container
);
2539
Assert.Null(rootComponent.
Container
);
2541
Assert.Same(host.Container, component.
Container
);
2551
Assert.Null(rootComponent.
Container
);
2553
Assert.Same(host.Container, component.
Container
);
2563
Assert.Null(rootComponent.
Container
);
2565
Assert.Null(component.
Container
);
2621
Assert.Same(host, component.
Container
);
2627
Assert.Null(component.
Container
);
2634
Assert.Null(component.
Container
);
2697
Assert.Null(component.
Container
);
2704
Assert.Null(component.
Container
);
2813
Assert.Null(component1.
Container
);
2815
Assert.Same(host.Container, component2.
Container
);
2823
Assert.Null(component1.
Container
);
2825
Assert.Same(host.Container, component2.
Container
);
2835
Assert.Null(component1.
Container
);
2837
Assert.Null(component2.
Container
);
2862
Assert.Null(component.
Container
);
System\ComponentModel\Design\DesignSurfaceTests.cs (4)
1026
Assert.Null(instance.
Container
);
1034
Assert.Null(instance.
Container
);
1091
Assert.Null(instance.
Container
);
1099
Assert.Null(instance.
Container
);
System\ComponentModel\Design\SiteNestedContainerTests.cs (34)
75
Assert.Same(container, component1.
Container
);
185
Assert.Same(container, component1.
Container
);
196
Assert.Same(container, component2.
Container
);
207
Assert.Same(container, component3.
Container
);
218
Assert.Same(container, component4.
Container
);
242
Assert.Same(container, component1.
Container
);
251
Assert.Same(container, component2.
Container
);
262
Assert.Same(container, component3.
Container
);
273
Assert.Same(container, component4.
Container
);
537
Assert.Same(container, component.
Container
);
543
Assert.Same(container, component.
Container
);
551
Assert.Same(container, component.
Container
);
608
Assert.Null(component.
Container
);
612
Assert.Null(component.
Container
);
635
Assert.Same(container, component.
Container
);
639
Assert.Same(container, component.
Container
);
679
Assert.Null(rootComponent.
Container
);
681
Assert.Same(container, component.
Container
);
689
Assert.Null(rootComponent.
Container
);
691
Assert.Same(container, component.
Container
);
699
Assert.Null(rootComponent.
Container
);
701
Assert.Null(component.
Container
);
752
Assert.Same(container, component.
Container
);
758
Assert.Null(component.
Container
);
765
Assert.Null(component.
Container
);
823
Assert.Null(component.
Container
);
830
Assert.Null(component.
Container
);
945
Assert.Null(component1.
Container
);
947
Assert.Same(container, component2.
Container
);
955
Assert.Null(component1.
Container
);
957
Assert.Same(container, component2.
Container
);
967
Assert.Null(component1.
Container
);
969
Assert.Null(component2.
Container
);
996
Assert.Null(component.
Container
);
System.Windows.Forms.Tests (116)
System\Windows\Forms\AxHostTests.cs (2)
51
Assert.Null(control.
Container
);
145
Assert.Null(control.
Container
);
System\Windows\Forms\BindingSourceTests.cs (7)
20
Assert.Null(source.
Container
);
79
Assert.Null(source.
Container
);
144
Assert.Null(source.
Container
);
230
Assert.Null(source.
Container
);
300
Assert.Null(source.
Container
);
409
Assert.Null(source.
Container
);
483
Assert.Same(container, source.
Container
);
System\Windows\Forms\ButtonBaseTests.cs (1)
43
Assert.Null(control.
Container
);
System\Windows\Forms\ButtonTests.cs (1)
45
Assert.Null(control.
Container
);
System\Windows\Forms\CheckBoxTests.cs (1)
47
Assert.Null(control.
Container
);
System\Windows\Forms\ColorDialogTests.cs (3)
21
Assert.Null(dialog.
Container
);
45
Assert.Null(dialog.
Container
);
342
Assert.Null(dialog.
Container
);
System\Windows\Forms\ColumnHeaderTests.cs (6)
17
Assert.Null(header.
Container
);
43
Assert.Null(header.
Container
);
67
Assert.Null(header.
Container
);
1474
Assert.Null(header.
Container
);
1513
Assert.Null(header.
Container
);
1550
Assert.Null(header.
Container
);
System\Windows\Forms\ComboBoxTests.cs (1)
48
Assert.Null(control.
Container
);
System\Windows\Forms\CommonDialogTests.cs (2)
18
Assert.Null(dialog.
Container
);
22
Assert.Null(dialog.
Container
);
System\Windows\Forms\ContainerControlTests.cs (1)
50
Assert.Null(control.
Container
);
System\Windows\Forms\ControlTests.cs (5)
38
Assert.Null(control.
Container
);
127
Assert.Null(control.
Container
);
223
Assert.Null(control.
Container
);
319
Assert.Null(control.
Container
);
415
Assert.Null(control.
Container
);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
49
Assert.Null(control.
Container
);
System\Windows\Forms\DateTimePickerTests.cs (1)
52
Assert.Null(control.
Container
);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
58
Assert.Null(control.
Container
);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
47
Assert.Null(control.
Container
);
System\Windows\Forms\DomainUpDownTests.cs (1)
70
_sub.
Container
.Should().BeNull();
System\Windows\Forms\ErrorProviderTests.cs (3)
20
Assert.Null(provider.
Container
);
43
Assert.Null(provider.
Container
);
70
Assert.Same(container, provider.
Container
);
System\Windows\Forms\FileDialogTests.cs (3)
21
Assert.Null(dialog.
Container
);
59
Assert.Null(dialog.
Container
);
615
Assert.Null(dialog.
Container
);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
45
Assert.Null(control.
Container
);
System\Windows\Forms\FolderBrowserDialogTests.cs (2)
14
Assert.Null(dialog.
Container
);
292
Assert.Null(dialog.
Container
);
System\Windows\Forms\FontDialogTests.cs (3)
21
Assert.Null(dialog.
Container
);
51
Assert.Null(dialog.
Container
);
610
Assert.Null(dialog.
Container
);
System\Windows\Forms\FormTests.cs (1)
57
Assert.Null(control.
Container
);
System\Windows\Forms\GroupBoxTests.cs (1)
41
Assert.Null(control.
Container
);
System\Windows\Forms\HelpProviderTests.cs (1)
16
Assert.Null(provider.
Container
);
System\Windows\Forms\HScrollBarTests.cs (1)
45
Assert.Null(control.
Container
);
System\Windows\Forms\ImageListTests.cs (2)
18
Assert.Null(list.
Container
);
36
Assert.Same(container, list.
Container
);
System\Windows\Forms\LabelTests.cs (1)
41
Assert.Null(control.
Container
);
System\Windows\Forms\ListBoxTests.cs (1)
43
Assert.Null(control.
Container
);
System\Windows\Forms\ListControlTests.cs (1)
42
Assert.Null(control.
Container
);
System\Windows\Forms\ListViewTests.cs (1)
56
Assert.Null(control.
Container
);
System\Windows\Forms\MdiClientTests.cs (1)
38
Assert.Null(control.
Container
);
System\Windows\Forms\MenuStripTests.cs (1)
45
Assert.Null(control.
Container
);
System\Windows\Forms\MonthCalendarTests.cs (1)
54
Assert.Null(control.
Container
);
System\Windows\Forms\NotifyIconTests.cs (6)
19
Assert.Null(notifyIcon.
Container
);
36
Assert.Same(container, notifyIcon.
Container
);
731
Assert.Null(notifyIcon.
Container
);
745
Assert.Null(notifyIcon.
Container
);
789
Assert.Null(notifyIcon.
Container
);
802
Assert.Null(notifyIcon.
Container
);
System\Windows\Forms\PageSetupDialogTests.cs (3)
19
Assert.Null(dialog.
Container
);
390
Assert.Null(dialog.
Container
);
426
Assert.Same(container, dialog.
Container
);
System\Windows\Forms\PanelTests.cs (1)
45
Assert.Null(control.
Container
);
System\Windows\Forms\PictureBoxTests.cs (1)
44
Assert.Null(control.
Container
);
System\Windows\Forms\ProgressBarTests.cs (1)
40
Assert.Null(control.
Container
);
System\Windows\Forms\PropertyGridTests.cs (1)
69
Assert.Null(control.
Container
);
System\Windows\Forms\RadioButtonTests.cs (1)
46
Assert.Null(control.
Container
);
System\Windows\Forms\RichTextBoxTests.cs (1)
55
Assert.Null(control.
Container
);
System\Windows\Forms\ScrollableControlTests.cs (1)
44
Assert.Null(control.
Container
);
System\Windows\Forms\ScrollBarTests.cs (1)
39
Assert.Null(control.
Container
);
System\Windows\Forms\SplitterPanelTests.cs (1)
49
Assert.Null(control.
Container
);
System\Windows\Forms\SplitterTests.cs (1)
40
Assert.Null(control.
Container
);
System\Windows\Forms\StatusStripTests.cs (1)
45
Assert.Null(control.
Container
);
System\Windows\Forms\TabControlTests.cs (1)
42
Assert.Null(control.
Container
);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
50
Assert.Null(control.
Container
);
System\Windows\Forms\TabPageTests.cs (2)
49
Assert.Null(control.
Container
);
158
Assert.Null(control.
Container
);
System\Windows\Forms\TimerTests.cs (2)
15
Assert.Null(timer.
Container
);
28
Assert.Same(container, timer.
Container
);
System\Windows\Forms\ToolStripButtonTests.cs (6)
39
Assert.Null(item.
Container
);
120
Assert.Null(item.
Container
);
207
Assert.Null(item.
Container
);
297
Assert.Null(item.
Container
);
385
Assert.Null(item.
Container
);
483
Assert.Null(item.
Container
);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
47
Assert.Null(control.
Container
);
System\Windows\Forms\ToolStripControlHostTests.cs (1)
67
Assert.Null(item.
Container
);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
35
Assert.Null(item.
Container
);
124
Assert.Null(item.
Container
);
223
Assert.Null(item.
Container
);
323
Assert.Null(item.
Container
);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
49
Assert.Null(control.
Container
);
System\Windows\Forms\ToolStripItemTests.cs (3)
38
Assert.Null(item.
Container
);
123
Assert.Null(item.
Container
);
218
Assert.Null(item.
Container
);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
36
Assert.Null(item.
Container
);
System\Windows\Forms\ToolStripPanelTests.cs (1)
46
Assert.Null(control.
Container
);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
36
Assert.Null(item.
Container
);
System\Windows\Forms\ToolStripTests.cs (2)
49
Assert.Null(control.
Container
);
208
Assert.Null(control.
Container
);
System\Windows\Forms\ToolTipTests.cs (2)
23
Assert.Null(toolTip.
Container
);
53
Assert.Same(container, toolTip.
Container
);
System\Windows\Forms\TreeViewTests.cs (1)
42
Assert.Null(control.
Container
);
System\Windows\Forms\UpDownBaseTests.cs (1)
57
Assert.Null(control.
Container
);
System\Windows\Forms\UserControlTests.cs (1)
50
Assert.Null(control.
Container
);
System\Windows\Forms\VScrollBarTests.cs (1)
44
Assert.Null(control.
Container
);
System\Windows\Forms\WebBrowserTests.cs (1)
40
Assert.Null(control.
Container
);
TextBoxTests.cs (1)
48
Assert.Null(control.
Container
);
TrackBarTests.cs (1)
41
Assert.Null(control.
Container
);