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)
206
|| 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)
195
.Setup(h => h.
CreateComponent
(typeof(Component)))
242
.Setup(h => h.
CreateComponent
(typeof(Component)))
299
.Setup(h => h.
CreateComponent
(typeof(Component)))
System\ComponentModel\Design\CollectionFormTests.cs (3)
566
.Setup(h => h.
CreateComponent
(typeof(Component)))
614
.Setup(h => h.
CreateComponent
(typeof(Component)))
672
.Setup(h => h.
CreateComponent
(typeof(Component)))
System\ComponentModel\Design\DesignerHostTests.cs (1)
1865
Assert.Throws<ArgumentNullException>("componentType", () => host.
CreateComponent
(null));
System\Drawing\Design\ToolboxItemTests.cs (7)
433
.Setup(h => h.
CreateComponent
(typeof(bool)))
499
.Setup(h => h.
CreateComponent
(typeof(bool)))
567
.Setup(h => h.
CreateComponent
(typeof(bool)))
626
.Setup(h => h.
CreateComponent
(typeof(bool)))
752
.Setup(h => h.
CreateComponent
(typeof(bool)))
818
.Setup(h => h.
CreateComponent
(typeof(bool)))
886
.Setup(h => h.
CreateComponent
(typeof(bool)))
System\Windows\Forms\Design\TabControlDesignerTests.cs (2)
31
designerHost.Setup(h => h.
CreateComponent
(typeof(TabPage))).Returns(tabPage);
45
designerHost.Setup(h => h.
CreateComponent
(typeof(TabPage))).Returns(tabPage);
System.Windows.Forms.UI.IntegrationTests (1)
DesignBehaviorsTests.cs (1)
310
LoaderHost.
CreateComponent
(typeof(Form));