DesignSurfaceMergeContext::AddRootModelElement Method (Transaction^, ModelElement^)
Visual Studio 2015
Adds the modelElement to the transaction's DesignSurfaceMergeContext's RootMel collection.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
public: static void AddRootModelElement( Transaction^ transaction, ModelElement^ modelElement )
Parameters
- transaction
-
Type:
Microsoft.VisualStudio.Modeling::Transaction^
The transaction containing the saved DesignSurfaceMergeContext. This is typically the top-level transaction.
- modelElement
-
Type:
Microsoft.VisualStudio.Modeling::ModelElement^
The model element to add to the RootMel collection.
Show: