This documentation is archived and is not being maintained.
ToolboxItem.Initialize Method
.NET Framework 1.1
Initializes the current toolbox item with the specified type to create.
[Visual Basic] Public Overridable Sub Initialize( _ ByVal type As Type _ ) [C#] public virtual void Initialize( Type type ); [C++] public: virtual void Initialize( Type* type ); [JScript] public function Initialize( type : Type );
Parameters
- type
- The Type that the toolbox item will create.
Remarks
This method configures the toolbox item to create the specified type, if the CreateComponentsCore method has not been overridden to behave differently.
This method performs the following operations:
- Sets the AssemblyName property to an AssemblyName indicating the assembly of the specified type.
- Sets the DisplayName property to a short type name based on the name of the specified type.
- Adds any ToolboxItemFilterAttribute attributes found on the specified type to the Filter property collection.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
ToolboxItem Class | ToolboxItem Members | System.Drawing.Design Namespace
Show: