ToolboxItemContainer Constructor (IDataObject^)
Initializes a new instance of the ToolboxItemContainer class from a System.Windows.Forms::IDataObject.
Assembly: System.Drawing.Design (in System.Drawing.Design.dll)
Parameters
- data
-
Type:
System.Windows.Forms::IDataObject^
A data object that represents a ToolboxItemContainer.
The data parameter may contain data provided by the ToolboxItemContainer class. It may contain data that can be read by one of the ToolboxItem creators that have been supplied by the user. It may also be data with a clipboard format that has a ToolboxItem creator assigned to it. In this case, the ToolboxItem is created on demand.
Notes to Inheritors:
Generally, it is not necessary to override the serialization mechanism for a ToolboxItemContainer. ToolboxItemContainer objects implement serialization by saving the System.Windows.Forms::IDataObject returned from the ToolboxData property. When you override ToolboxData and provide your own custom data, this data is included with the default System.Runtime.Serialization::ISerializable implementation. Override the default serialization implementation only if you intend to store private details about this ToolboxItemContainer that should not be exposed through the public data object.
Available since 2.0