Extensions.GetShape Method
Get the shape that presents this layer element.
Namespace: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer
Assembly: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function GetShape ( _
element As ILayerElement _
) As IShape
public static IShape GetShape(
this ILayerElement element
)
[ExtensionAttribute]
public:
static IShape^ GetShape(
ILayerElement^ element
)
static member GetShape :
element:ILayerElement -> IShape
public static function GetShape(
element : ILayerElement
) : IShape
Parameters
- element
Type: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.ILayerElement
The layer element
Return Value
Type: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation.IShape
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type ILayerElement. 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
- 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.Layer Namespace
GetLayerElement()