Condividi tramite


PresentationHelpers.CreateIShape Method

Wrap a ShapeElement from the underlying implementation so that it can be used as a UML modeling IShape. This does not construct or modify a shape. Instead, it provides a convenient reference to an existing shape, or a field within a shape.

Namespace:  Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation
Assembly:  Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function CreateIShape ( _
    shape As ShapeElement, _
    field As ShapeField, _
    subfield As ShapeSubField _
) As IShape
public static IShape CreateIShape(
    this ShapeElement shape,
    ShapeField field,
    ShapeSubField subfield
)
[ExtensionAttribute]
public:
static IShape^ CreateIShape(
    ShapeElement^ shape, 
    ShapeField^ field, 
    ShapeSubField^ subfield
)
static member CreateIShape : 
        shape:ShapeElement * 
        field:ShapeField * 
        subfield:ShapeSubField -> IShape
public static function CreateIShape(
    shape : ShapeElement, 
    field : ShapeField, 
    subfield : ShapeSubField
) : IShape

Parameters

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 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

See Also

Reference

PresentationHelpers Class

Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation Namespace