Condividi tramite


ModelElement.MergeConfigure Method

Allows the model element to configure itself immediately after the Merge process has related it to the target element.

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

Syntax

'Declaration
Protected Overridable Sub MergeConfigure ( _
    elementGroup As ElementGroup _
)
protected virtual void MergeConfigure(
    ElementGroup elementGroup
)
protected:
virtual void MergeConfigure(
    ElementGroup^ elementGroup
)
abstract MergeConfigure : 
        elementGroup:ElementGroup -> unit  
override MergeConfigure : 
        elementGroup:ElementGroup -> unit
protected function MergeConfigure(
    elementGroup : ElementGroup
)

Parameters

Remarks

A merge operation is what happens when the user uses a tool to create a model element, or performs the paste command, or drags an element onto another. Merge combines the new or copied elements into the existing model.

Override this method to set the element’s links during the merge process.

.NET Framework Security

See Also

Reference

ModelElement Class

Microsoft.VisualStudio.Modeling Namespace

Other Resources

Customizing Copy Behavior

How to: Program Copy and Paste Behavior - redirect

How to: Add a Drag-and-Drop Handler