ToolboxItemCreator.Create(IDataObject) Method

Definition

Creates a new ToolboxItem from a IDataObject.

public:
 System::Drawing::Design::ToolboxItem ^ Create(System::Windows::Forms::IDataObject ^ data);
public System.Drawing.Design.ToolboxItem Create (System.Windows.Forms.IDataObject data);
member this.Create : System.Windows.Forms.IDataObject -> System.Drawing.Design.ToolboxItem
Public Function Create (data As IDataObject) As ToolboxItem

Parameters

data
IDataObject

A data object that represents a ToolboxItem.

Returns

A new instance of the ToolboxItem class.

Remarks

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.

Applies to

See also