1 implementation of CreateComponent
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerHost.cs (1)
928
IComponent 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)
97
IComponent instance = host.
CreateComponent
(itemType);
System\ComponentModel\Design\DesignSurface.cs (1)
551
loaderHost.
CreateComponent
(_type);
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
274
? host.
CreateComponent
(type)
System\Drawing\Design\ToolboxItem.cs (1)
263
comps.Add(host.
CreateComponent
(createType));
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (1)
133
comps[0] = host.
CreateComponent
(_axctlType);
System\Windows\Forms\Design\TabControlDesigner.cs (1)
263
TabPage page = (TabPage)host.
CreateComponent
(typeof(TabPage));
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (1)
75
IComponent component = designerHost.
CreateComponent
(t);
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
523
component = _host.
CreateComponent
(t);
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (4)
390
IComponent component = designerHost.
CreateComponent
(t);
441
IComponent component = designerHost.
CreateComponent
(t);
480
IComponent component = designerHost.
CreateComponent
(t);
520
IComponent component = designerHost.
CreateComponent
(t);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
794
newItem = (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)
1863
Assert.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)
33
designerHost.Setup(h => h.
CreateComponent
(typeof(TabPage))).Returns(tabPage);
47
designerHost.Setup(h => h.
CreateComponent
(typeof(TabPage))).Returns(tabPage);
System.Windows.Forms.UI.IntegrationTests (1)
DesignBehaviorsTests.cs (1)
308
LoaderHost.
CreateComponent
(typeof(Form));