Compartilhar via


ElementOperations.MergeElementGroupPrototype Method

Definition

Merges the source ElementGroupPrototype with the specified target ModelElement. This method performs the following: (1) reconstitutes the elements from the ElementGroupPrototype, (2) calls OnElementsReconstituted to provide any ElementOperations-derived class the opportunity to plug in custom processing, (3) calls the target element's MergeRelate virtual method for each reconstituted root element to provide the target with the opportunity to connect a root element to itself, (4) calls the virtual method MergeConfigure on the reconstituted root element immediately after calling MergeRelate to provide the root element with an opportunity to configure itself, and (5) calls OnMerged to provide any ElementOperations-derived class the opportunity to plug in custom processing.

public:
 virtual void MergeElementGroupPrototype(Microsoft::VisualStudio::Modeling::ModelElement ^ targetElement, Microsoft::VisualStudio::Modeling::ElementGroupPrototype ^ elementGroupPrototype);
public virtual void MergeElementGroupPrototype (Microsoft.VisualStudio.Modeling.ModelElement targetElement, Microsoft.VisualStudio.Modeling.ElementGroupPrototype elementGroupPrototype);
abstract member MergeElementGroupPrototype : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.ElementGroupPrototype -> unit
override this.MergeElementGroupPrototype : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.ElementGroupPrototype -> unit
Public Overridable Sub MergeElementGroupPrototype (targetElement As ModelElement, elementGroupPrototype As ElementGroupPrototype)

Parameters

targetElement
ModelElement

The target element which will serve as the parent of the reconstituted elements.

elementGroupPrototype
ElementGroupPrototype

The source ElementGroupPrototype.

Applies to