PresentationElementHelper.GetDslDefinitionModelElement Method

This method guarantees 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.

Namespace:  Microsoft.VisualStudio.Modeling.DslDesigner
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetDslDefinitionModelElement ( _
    e As PresentationElement _
) As ModelElement
public static ModelElement GetDslDefinitionModelElement(
    this PresentationElement e
)
[ExtensionAttribute]
public:
static ModelElement^ GetDslDefinitionModelElement(
    PresentationElement^ e
)
static member GetDslDefinitionModelElement : 
        e:PresentationElement -> ModelElement
public static function GetDslDefinitionModelElement(
    e : PresentationElement
) : ModelElement

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.ModelElement
Returns ModelElement.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type PresentationElement. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework Security

See Also

Reference

PresentationElementHelper Class

Microsoft.VisualStudio.Modeling.DslDesigner Namespace