DesignSurfaceElementOperations::GetAssociatedModelElement Method (ElementGroupPrototype^, ProtoElementBase^)
Visual Studio 2015
Gets the ProtoElement associated with the specified protoPresentationElement via the PresentationViewsSubject relationship.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
public: static ProtoElementBase^ GetAssociatedModelElement( ElementGroupPrototype^ elementGroupPrototype, ProtoElementBase^ protoPresentationElement )
Parameters
- elementGroupPrototype
-
Type:
Microsoft.VisualStudio.Modeling::ElementGroupPrototype^
The ElementGroupPrototype that contains the protoPresentationElement.
- protoPresentationElement
-
Type:
Microsoft.VisualStudio.Modeling::ProtoElementBase^
The ProtoElement corresponding to the PresentationElement.
Return Value
Type: Microsoft.VisualStudio.Modeling::ProtoElementBase^
Show: