PresentationHelpers.GetElement Method
The UML model element displayed by this ShapeElement.
Namespace: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation
Assembly: Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function GetElement ( _
shapeElement As ShapeElement _
) As IElement
public static IElement GetElement(
this ShapeElement shapeElement
)
[ExtensionAttribute]
public:
static IElement^ GetElement(
ShapeElement^ shapeElement
)
static member GetElement :
shapeElement:ShapeElement -> IElement
public static function GetElement(
shapeElement : ShapeElement
) : IElement
Parameters
- shapeElement
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
Return Value
Type: Microsoft.VisualStudio.Uml.Classes.IElement
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type ShapeElement. 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).
Remarks
For more information, see:
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation Namespace