PresentationElementHelper.GetDslDefinitionModelElement Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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