Compartilhar via


DesignSurfaceElementOperations.Merge Method

Definition

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

public:
 void Merge(Microsoft::VisualStudio::Modeling::Diagrams::PresentationElement ^ targetElement, System::Windows::Forms::IDataObject ^ data, System::Drawing::PointF mergePosition);
public void Merge (Microsoft.VisualStudio.Modeling.Diagrams.PresentationElement targetElement, System.Windows.Forms.IDataObject data, System.Drawing.PointF mergePosition);
override this.Merge : Microsoft.VisualStudio.Modeling.Diagrams.PresentationElement * System.Windows.Forms.IDataObject * System.Drawing.PointF -> unit
Public Sub Merge (targetElement As PresentationElement, data As IDataObject, mergePosition As PointF)

Parameters

targetElement
PresentationElement

The ModelElement that is the target for the ElementGroupPrototype.

data
IDataObject

The IDataObject potentially containing the ElementGroupPrototype.

mergePosition
PointF

location to which the the element should be merged

Applies to