This documentation is archived and is not being maintained.
ToolboxItem::CreateComponents Method (IDesignerHost, IDictionary)
Visual Studio 2010
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.
The CreateComponents method calls the CreateComponentsCore method to retrieve an array of type IComponent containing the components to create.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: