ToolboxItemCreator.Create(IDataObject) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for