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 AnchorPoint.
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 LinkShape, _
    segment As LineSegment, _
    anchorPoint As AnchorPoint _
)
public DiagramItem(
    LinkShape shape,
    LineSegment segment,
    AnchorPoint anchorPoint
)
public:
DiagramItem(
    LinkShape^ shape, 
    LineSegment^ segment, 
    AnchorPoint^ anchorPoint
)
new : 
        shape:LinkShape * 
        segment:LineSegment * 
        anchorPoint:AnchorPoint -> DiagramItem
public function DiagramItem(
    shape : LinkShape, 
    segment : LineSegment, 
    anchorPoint : AnchorPoint
)
Parameters
- shape 
 Type: Microsoft.VisualStudio.Modeling.Diagrams.LinkShape- The parent ShapeElement of the LineSegment. This cannot be null. 
- segment 
 Type: Microsoft.VisualStudio.Modeling.Diagrams.LineSegment- The LineSegment that this DiagramItem is to represent. This cannot be null. 
- anchorPoint 
 Type: Microsoft.VisualStudio.Modeling.Diagrams.AnchorPoint- The anchor point 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.