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.
Initializes a new instance of the DiagramItem class to represent the specified ShapeField.
Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
Public Sub New ( _
    shape As ShapeElement, _
    field As ShapeField _
)
public DiagramItem(
    ShapeElement shape,
    ShapeField field
)
public:
DiagramItem(
    ShapeElement^ shape, 
    ShapeField^ field
)
new : 
        shape:ShapeElement * 
        field:ShapeField -> DiagramItem
public function DiagramItem(
    shape : ShapeElement, 
    field : ShapeField
)
Parameters
- shape 
 Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement- The parent ShapeElement of the ShapeField. This cannot be null. 
- field 
 Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeField- The ShapeField that this DiagramItem is to represent. 
.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.