ToolboxItem.Initialize Method (Type)

 

Initializes the current toolbox item with the specified type to create.

Namespace:   System.Drawing.Design
Assembly:  System.Drawing (in System.Drawing.dll)

Public Overridable Sub Initialize (
	type As Type
)

Parameters

type
Type: System.Type

The Type that the toolbox item creates.

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:

.NET Framework
Available since 1.1
Return to top
Show: