Partager via


PresentationElementHelper.GetDslDefinitionModelElement Method

Definition

This method ensures that the real model element corresponding to the PresentationElement is returned. For DslDesigner PELs, the corresponding subject may actually be an internal TreeNode class and not the actual MEL. This method handles those cases correctly so that the actual MEL is returned.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::VisualStudio::Modeling::ModelElement ^ GetDslDefinitionModelElement(Microsoft::VisualStudio::Modeling::Diagrams::PresentationElement ^ e);
public static Microsoft.VisualStudio.Modeling.ModelElement GetDslDefinitionModelElement (this Microsoft.VisualStudio.Modeling.Diagrams.PresentationElement e);
static member GetDslDefinitionModelElement : Microsoft.VisualStudio.Modeling.Diagrams.PresentationElement -> Microsoft.VisualStudio.Modeling.ModelElement
<Extension()>
Public Function GetDslDefinitionModelElement (e As PresentationElement) As ModelElement

Parameters

Returns

Applies to