ToolboxItemCreator::Create Method (IDataObject^)

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

public:
ToolboxItem^ Create(
	IDataObject^ data
)

Parameters

data
Type: System.Windows.Forms::IDataObject^

A data object that represents a ToolboxItem.

Return Value

Type: System.Drawing.Design::ToolboxItem^

A new instance of the ToolboxItem class.

The data parameter might contain data provided by the ToolboxItemContainer class. It might contain data that can be read by one of the ToolboxItemCreator classes that have been supplied by the user. It might also be data with a Clipboard format that has a ToolboxItemCreator assigned to it. In this case, the ToolboxItem is created on demand.

The Create method might raise an exception if the data object does not contain data for the supported format.

.NET Framework
Available since 2.0
Return to top
Show: