ElementOperations::MergeElementGroupPrototype Method (ModelElement^, ElementGroupPrototype^)
Merges the source ElementGroupPrototype with the specified target ModelElement.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
public: virtual void MergeElementGroupPrototype( ModelElement^ targetElement, ElementGroupPrototype^ elementGroupPrototype )
Parameters
- targetElement
-
Type:
Microsoft.VisualStudio.Modeling::ModelElement^
The target element which will serve as the parent of the reconstituted elements.
- elementGroupPrototype
-
Type:
Microsoft.VisualStudio.Modeling::ElementGroupPrototype^
The source ElementGroupPrototype.
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.