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