Compartilhar via


ModelElement.ChooseMergeTarget Method

Definition

Overloads

ChooseMergeTarget(ElementGroup)

Gets the ModelElement to be used as the target for the ElementGroup merge process.
This is called by the merge process when this element is the target of the merge.
This provides this element with the opportunity to change the target to something other than itself.

ChooseMergeTarget(ElementGroupPrototype)

Gets the ModelElement to be used as the target for the ElementGroupPrototype merge process.
This is called by the merge process when this element is the target of the merge.
This provides this element with the opportunity to change the target to something other than itself.

ChooseMergeTarget(ElementGroup)

Gets the ModelElement to be used as the target for the ElementGroup merge process.
This is called by the merge process when this element is the target of the merge.
This provides this element with the opportunity to change the target to something other than itself.

protected:
 virtual Microsoft::VisualStudio::Modeling::ModelElement ^ ChooseMergeTarget(Microsoft::VisualStudio::Modeling::ElementGroup ^ elementGroup);
protected virtual Microsoft.VisualStudio.Modeling.ModelElement ChooseMergeTarget (Microsoft.VisualStudio.Modeling.ElementGroup elementGroup);
abstract member ChooseMergeTarget : Microsoft.VisualStudio.Modeling.ElementGroup -> Microsoft.VisualStudio.Modeling.ModelElement
override this.ChooseMergeTarget : Microsoft.VisualStudio.Modeling.ElementGroup -> Microsoft.VisualStudio.Modeling.ModelElement
Protected Overridable Function ChooseMergeTarget (elementGroup As ElementGroup) As ModelElement

Parameters

elementGroup
ElementGroup

The ElementGroup that will be merged with the target element.

Returns

The ModelElement to use as the target for the merge process.

Applies to

ChooseMergeTarget(ElementGroupPrototype)

Gets the ModelElement to be used as the target for the ElementGroupPrototype merge process.
This is called by the merge process when this element is the target of the merge.
This provides this element with the opportunity to change the target to something other than itself.

protected:
 virtual Microsoft::VisualStudio::Modeling::ModelElement ^ ChooseMergeTarget(Microsoft::VisualStudio::Modeling::ElementGroupPrototype ^ elementGroupPrototype);
protected virtual Microsoft.VisualStudio.Modeling.ModelElement ChooseMergeTarget (Microsoft.VisualStudio.Modeling.ElementGroupPrototype elementGroupPrototype);
abstract member ChooseMergeTarget : Microsoft.VisualStudio.Modeling.ElementGroupPrototype -> Microsoft.VisualStudio.Modeling.ModelElement
override this.ChooseMergeTarget : Microsoft.VisualStudio.Modeling.ElementGroupPrototype -> Microsoft.VisualStudio.Modeling.ModelElement
Protected Overridable Function ChooseMergeTarget (elementGroupPrototype As ElementGroupPrototype) As ModelElement

Parameters

elementGroupPrototype
ElementGroupPrototype

The ElementGroupPrototype that will be reconstituted and merged with the target element.

Returns

The ModelElement to use as the target for the merge process.

Applies to