ToolboxItem::Initialize Method
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.
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.