Creates the components that the toolbox item is configured to create, using the specified designer host and default values.
- host
- The System.ComponentModel.Design.IDesignerHost to use when creating the components.
- defaultValues
- A dictionary of property name/value pairs of default values with which to initialize the component.
An array of created System.ComponentModel.IComponent objects.
The ToolboxItem.CreateComponents(System.ComponentModel.Design.IDesignerHost, IDictionary) method calls the ToolboxItem.CreateComponentsCore(System.ComponentModel.Design.IDesignerHost, IDictionary) method to retrieve an array of type System.ComponentModel.IComponent containing the components to create.