1 implementation of CreateComponent
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerHost.cs (1)
928IComponent IDesignerHost.CreateComponent(Type componentType) =>
31 references to CreateComponent
DesignSurfaceExt (1)
DesignSurfaceExt.cs (1)
213|| host.CreateComponent(typeof(TComponent)) is not IComponent newComp
System.Windows.Forms.Design (13)
System\ComponentModel\Design\CollectionEditor.cs (1)
97IComponent instance = host.CreateComponent(itemType);
System\ComponentModel\Design\DesignSurface.cs (1)
551loaderHost.CreateComponent(_type);
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
274? host.CreateComponent(type)
System\Drawing\Design\ToolboxItem.cs (1)
263comps.Add(host.CreateComponent(createType));
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (1)
133comps[0] = host.CreateComponent(_axctlType);
System\Windows\Forms\Design\TabControlDesigner.cs (1)
263TabPage page = (TabPage)host.CreateComponent(typeof(TabPage));
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (1)
75IComponent component = designerHost.CreateComponent(t);
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
523component = _host.CreateComponent(t);
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (4)
390IComponent component = designerHost.CreateComponent(t); 441IComponent component = designerHost.CreateComponent(t); 480IComponent component = designerHost.CreateComponent(t); 520IComponent component = designerHost.CreateComponent(t);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
794newItem = (ToolStripItem)_designerHost.CreateComponent(t);
System.Windows.Forms.Design.Tests (16)
System\ComponentModel\Design\CollectionEditorTests.cs (3)
213.Setup(h => h.CreateComponent(typeof(Component))) 260.Setup(h => h.CreateComponent(typeof(Component))) 317.Setup(h => h.CreateComponent(typeof(Component)))
System\ComponentModel\Design\CollectionFormTests.cs (3)
564.Setup(h => h.CreateComponent(typeof(Component))) 612.Setup(h => h.CreateComponent(typeof(Component))) 670.Setup(h => h.CreateComponent(typeof(Component)))
System\ComponentModel\Design\DesignerHostTests.cs (1)
1863Assert.Throws<ArgumentNullException>("componentType", () => host.CreateComponent(null));
System\Drawing\Design\ToolboxItemTests.cs (7)
431.Setup(h => h.CreateComponent(typeof(bool))) 497.Setup(h => h.CreateComponent(typeof(bool))) 565.Setup(h => h.CreateComponent(typeof(bool))) 624.Setup(h => h.CreateComponent(typeof(bool))) 750.Setup(h => h.CreateComponent(typeof(bool))) 816.Setup(h => h.CreateComponent(typeof(bool))) 884.Setup(h => h.CreateComponent(typeof(bool)))
System\Windows\Forms\Design\TabControlDesignerTests.cs (2)
33designerHost.Setup(h => h.CreateComponent(typeof(TabPage))).Returns(tabPage); 47designerHost.Setup(h => h.CreateComponent(typeof(TabPage))).Returns(tabPage);
System.Windows.Forms.UI.IntegrationTests (1)
DesignBehaviorsTests.cs (1)
310LoaderHost.CreateComponent(typeof(Form));