14 references to CreateComponents
System.Windows.Forms.Design (2)
System\Drawing\Design\ToolboxItem.cs (1)
216
public IComponent[]? CreateComponents() =>
CreateComponents
(null);
System\Windows\Forms\Design\CommandSet.cs (1)
1888
components = ti.
CreateComponents
(host);
System.Windows.Forms.Design.Tests (12)
System\Drawing\Design\ToolboxItemTests.cs (12)
393
Assert.IsType<Component>(Assert.Single(item.
CreateComponents
(null)));
401
Assert.IsType<Component>(Assert.Single(item.
CreateComponents
(null)));
455
Assert.Same(component, Assert.Single(item.
CreateComponents
(mockDesignerHost.Object)));
471
Assert.Same(component, Assert.Single(item.
CreateComponents
(mockDesignerHost.Object)));
521
Assert.Same(component, Assert.Single(item.
CreateComponents
(mockDesignerHost.Object)));
537
Assert.Same(component, Assert.Single(item.
CreateComponents
(mockDesignerHost.Object)));
591
Assert.Throws<InvalidOperationException>(() => item.
CreateComponents
(mockDesignerHost.Object));
607
Assert.Throws<InvalidOperationException>(() => item.
CreateComponents
(mockDesignerHost.Object));
645
Assert.Null(item.
CreateComponents
(mockDesignerHost.Object));
661
Assert.Null(item.
CreateComponents
(mockDesignerHost.Object));
790
Assert.Same(component, Assert.Single(item.
CreateComponents
(mockDesignerHost.Object)));
856
Assert.Same(component, Assert.Single(item.
CreateComponents
(mockDesignerHost.Object)));