다음을 통해 공유


DesignSurfaceElementOperations.ChooseMergeTarget Method (ModelElement, ElementGroupPrototype)

Gets the target element for the merge, given the proposed targetElement. This gives the ElementOperations the chance to change the intended target for the merge. By default, this method will give the target element the chance to change the intended target.

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

Syntax

'Declaration
Public Overrides Function ChooseMergeTarget ( _
    proposedTargetElement As ModelElement, _
    elementGroupPrototype As ElementGroupPrototype _
) As ModelElement
public override ModelElement ChooseMergeTarget(
    ModelElement proposedTargetElement,
    ElementGroupPrototype elementGroupPrototype
)
public:
virtual ModelElement^ ChooseMergeTarget(
    ModelElement^ proposedTargetElement, 
    ElementGroupPrototype^ elementGroupPrototype
) override
abstract ChooseMergeTarget : 
        proposedTargetElement:ModelElement * 
        elementGroupPrototype:ElementGroupPrototype -> ModelElement  
override ChooseMergeTarget : 
        proposedTargetElement:ModelElement * 
        elementGroupPrototype:ElementGroupPrototype -> ModelElement
public override function ChooseMergeTarget(
    proposedTargetElement : ModelElement, 
    elementGroupPrototype : ElementGroupPrototype
) : ModelElement

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.ModelElement

.NET Framework Security

See Also

Reference

DesignSurfaceElementOperations Class

ChooseMergeTarget Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace