Partager via


DesignSurfaceElementOperations.GetAssociatedModelElement Method

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

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'Déclaration
Public Shared Function GetAssociatedModelElement ( _
    elementGroupPrototype As ElementGroupPrototype, _
    protoPresentationElement As ProtoElementBase _
) As ProtoElementBase
public static ProtoElementBase GetAssociatedModelElement(
    ElementGroupPrototype elementGroupPrototype,
    ProtoElementBase protoPresentationElement
)
public:
static ProtoElementBase^ GetAssociatedModelElement(
    ElementGroupPrototype^ elementGroupPrototype, 
    ProtoElementBase^ protoPresentationElement
)
static member GetAssociatedModelElement : 
        elementGroupPrototype:ElementGroupPrototype * 
        protoPresentationElement:ProtoElementBase -> ProtoElementBase 
public static function GetAssociatedModelElement(
    elementGroupPrototype : ElementGroupPrototype, 
    protoPresentationElement : ProtoElementBase
) : ProtoElementBase

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.ProtoElementBase

.NET Framework Security

See Also

Reference

DesignSurfaceElementOperations Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace