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, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.