DesignSurfaceElementOperations.Merge Method (PresentationElement, IDataObject, PointF)

Merges (i.e., pastes or drops) the ElementGroupPrototype from the IDataObject to the target ModelElement.

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

Syntax

'Declaration
Public Sub Merge ( _
    targetElement As PresentationElement, _
    data As IDataObject, _
    mergePosition As PointF _
)
public void Merge(
    PresentationElement targetElement,
    IDataObject data,
    PointF mergePosition
)
public:
void Merge(
    PresentationElement^ targetElement, 
    IDataObject^ data, 
    PointF mergePosition
)
member Merge : 
        targetElement:PresentationElement * 
        data:IDataObject * 
        mergePosition:PointF -> unit
public function Merge(
    targetElement : PresentationElement, 
    data : IDataObject, 
    mergePosition : PointF
)

Parameters

  • data
    Type: IDataObject

    The IDataObject potentially containing the ElementGroupPrototype.

  • mergePosition
    Type: PointF

    location to which the the element should be merged

.NET Framework Security

See Also

Reference

DesignSurfaceElementOperations Class

Merge Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace