DesignSurfaceElementOperations::GetAssociatedModelElement Method (ElementGroupPrototype^, ProtoElementBase^)

 

Gets the ProtoElement associated with the specified protoPresentationElement via the PresentationViewsSubject relationship.

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams
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 to top
Show: