ToolboxItem::Initialize Method (Type^)
.NET Framework (current version)
Initializes the current toolbox item with the specified type to create.
Assembly: System.Drawing (in System.Drawing.dll)
| Exception | Condition |
|---|---|
| InvalidOperationException | The ToolboxItem was locked. |
The Initialize 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.
.NET Framework
Available since 1.1
Available since 1.1
Show: