Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
public static IShape CreateIShape(
    this ShapeElement shape,
    ShapeField field = null,
    ShapeSubField subfield = null
)
public:
[ExtensionAttribute]
static IShape^ CreateIShape(
    ShapeElement^ shape,
    ShapeField^ field = null,
    ShapeSubField^ subfield = null
)
static member CreateIShape : 
        shape:ShapeElement *
        field:ShapeField = null *
        subfield:ShapeSubField = null -> IShape
<ExtensionAttribute>
Public Shared Function CreateIShape (
    shape As ShapeElement,
    field As ShapeField,
    subfield As ShapeSubField
) As IShape
Parameters
- shape 
 Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement- The ShapeElement to wrap. 
- field 
 Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeField- May be omitted. 
- subfield 
 Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeSubField- May be omitted. 
Return Value
Type: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation.IShape
Remarks
For more information, see:
See Also
PresentationHelpers Class
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation Namespace
Return to top