ElementOperations::Copy Method (IDataObject^, ICollection<ModelElement^>^, ClosureType, PointF)
Visual Studio 2015
Copies the collection of ModelElements to the specified IDataObject in one or more data formats.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
public: virtual void Copy( IDataObject^ data, ICollection<ModelElement^>^ elements, ClosureType closureType, PointF sourcePosition )
Parameters
- data
-
Type:
System.Windows.Forms::IDataObject^
The IDataObject to add the data formats to.
- elements
-
Type:
System.Collections.Generic::ICollection<ModelElement^>^
The collection of ModelElements to copy.
- closureType
-
Type:
Microsoft.VisualStudio.Modeling::ClosureType
The type of closure to use to filter the elements.
- sourcePosition
-
Type:
System.Drawing::PointF
The mouse position where the drop occured, PointF.Empty if not a drag/drop operation.
The supported formats: (1) ElementGroupPrototype, and (2) custom formats
Show: