PresentationHelpers.CreateIShape Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Create an IShape object from a DSL shape, a shape field or a subfield.

Namespace:  Microsoft.VisualStudio.Uml.Presentation
Assembly:  Microsoft.VisualStudio.Uml.Extensions (in Microsoft.VisualStudio.Uml.Extensions.dll)


<ExtensionAttribute> _
Public Shared Function CreateIShape ( _
    shape As ShapeElement, _
    field As ShapeField, _
    subfield As ShapeSubField _
) As IShape
Dim shape As ShapeElement
Dim field As ShapeField
Dim subfield As ShapeSubField
Dim returnValue As IShape

returnValue = shape.CreateIShape(field, _
public static IShape CreateIShape(
    this ShapeElement shape,
    ShapeField field,
    ShapeSubField subfield
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


Return Value

Type: Microsoft.VisualStudio.Uml.Presentation.IShape
IShape object for given DSL shape, shape field or subfield. null if a valid IShape cannot be created.

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

.NET Framework Security

See Also


PresentationHelpers Class

PresentationHelpers Members

Microsoft.VisualStudio.Uml.Presentation Namespace