Share via


ElementOperations.Copy Method (IDataObject, ICollection<ModelElement>, ClosureType, PointF)

Copies the collection of ModelElements to the specified IDataObject in one or more data formats.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)

Syntax

'Declaration
Public Overridable Sub Copy ( _
    data As IDataObject, _
    elements As ICollection(Of ModelElement), _
    closureType As ClosureType, _
    sourcePosition As PointF _
)
public virtual void Copy(
    IDataObject data,
    ICollection<ModelElement> elements,
    ClosureType closureType,
    PointF sourcePosition
)
public:
virtual void Copy(
    IDataObject^ data, 
    ICollection<ModelElement^>^ elements, 
    ClosureType closureType, 
    PointF sourcePosition
)
abstract Copy : 
        data:IDataObject * 
        elements:ICollection<ModelElement> * 
        closureType:ClosureType * 
        sourcePosition:PointF -> unit  
override Copy : 
        data:IDataObject * 
        elements:ICollection<ModelElement> * 
        closureType:ClosureType * 
        sourcePosition:PointF -> unit
public function Copy(
    data : IDataObject, 
    elements : ICollection<ModelElement>, 
    closureType : ClosureType, 
    sourcePosition : PointF
)

Parameters

  • data
    Type: IDataObject

    The IDataObject to add the data formats to.

  • elements
    Type: ICollection<ModelElement>

    The collection of ModelElements to copy.

  • sourcePosition
    Type: PointF

    The mouse position where the drop occured, PointF.Empty if not a drag/drop operation.

Remarks

The supported formats: (1) ElementGroupPrototype, and (2) custom formats

.NET Framework Security

See Also

Reference

ElementOperations Class

Copy Overload

Microsoft.VisualStudio.Modeling Namespace