ToolboxItem::CreateComponents Method (IDesignerHost^, IDictionary^)
.NET Framework (current version)
Creates the components that the toolbox item is configured to create, using the specified designer host and default values.
Assembly: System.Drawing (in System.Drawing.dll)
public: array<IComponent^>^ CreateComponents( IDesignerHost^ host, IDictionary^ defaultValues )
Parameters
- host
-
Type:
System.ComponentModel.Design::IDesignerHost^
The IDesignerHost to use when creating the components.
- defaultValues
-
Type:
System.Collections::IDictionary^
A dictionary of property name/value pairs of default values with which to initialize the component.
Return Value
Type: array<System.ComponentModel::IComponent^>^An array of created IComponent objects.
The CreateComponents method calls the CreateComponentsCore method to retrieve an array of type IComponent containing the components to create.
.NET Framework
Available since 2.0
Available since 2.0
Show: