CreateComponentsCore(IDesignerHost,IDictionary) Method
See Also 
SourceCode.Framework.Design Namespace > ToolboxItemWizard Class > CreateComponentsCore Method : CreateComponentsCore(IDesignerHost,IDictionary) Method



host
The designer host to use when creating components.
defaultValues
A dictionary of property name/value pairs of default values with which to initialize the component.

Glossary Item Box

Creates an array of components when the toolbox item is invoked.

Syntax

Visual Basic (Declaration) 
Protected Overloads Overrides NotOverridable Function CreateComponentsCore( _
   ByVal host As IDesignerHost, _
   ByVal defaultValues As IDictionary _
) As IComponent()
Visual Basic (Usage)Copy Code
Dim instance As ToolboxItemWizard
Dim host As IDesignerHost
Dim defaultValues As IDictionary
Dim value() As IComponent
 
value = instance.CreateComponentsCore(host, defaultValues)
C# 
protected override IComponent[] CreateComponentsCore( 
   IDesignerHost host,
   IDictionary defaultValues
)
C++/CLI 
protected:
array<IComponent^>^ CreateComponentsCore( 
   IDesignerHost^ host,
   IDictionary^ defaultValues
) override 

Parameters

host
The designer host to use when creating components.
defaultValues
A dictionary of property name/value pairs of default values with which to initialize the component.

Return Value

An array of created System.ComponentModel.IComponent objects.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also