IDesignerHost::CreateComponent Method (Type^, String^)
.NET Framework (current version)
Creates a component of the specified type and name, and adds it to the design document.
Assembly: System (in System.dll)
Parameters
- componentClass
-
Type:
System::Type^
The type of the component to create.
- name
-
Type:
System::String^
The name for the component.
If the type cannot be resolved into an object that implements IComponent, an exception is thrown.
This method creates the component and adds it to the designer container.
.NET Framework
Available since 1.1
Available since 1.1
Show: