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)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function CreateIShape ( _
shape As ShapeElement, _
field As ShapeField, _
subfield As ShapeSubField _
) As IShape
'Usage
Dim shape As ShapeElement
Dim field As ShapeField
Dim subfield As ShapeSubField
Dim returnValue As IShape
returnValue = shape.CreateIShape(field, _
subfield)
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
- shape
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
DSL shape to create IShape for, or the shape that contains the field/subfield to create IShape for.
- field
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeField
If specified, the created IShape is for this shape field or a subfield inside this field, otherwise it's for the given shape.
- subfield
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeSubField
If specified, the created IShape is for this shape subfield.
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
- 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.