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.
Constructor that takes the two end points and its segment index.
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 ( _
    point1 As PointD, _
    point2 As PointD, _
    startIndex As Integer, _
    endIndex As Integer, _
    isStartSegment As Boolean, _
    isEndSegment As Boolean, _
    bounds As RectangleD _
)
public LineSegment(
    PointD point1,
    PointD point2,
    int startIndex,
    int endIndex,
    bool isStartSegment,
    bool isEndSegment,
    RectangleD bounds
)
public:
LineSegment(
    PointD point1, 
    PointD point2, 
    int startIndex, 
    int endIndex, 
    bool isStartSegment, 
    bool isEndSegment, 
    RectangleD bounds
)
new : 
        point1:PointD * 
        point2:PointD * 
        startIndex:int * 
        endIndex:int * 
        isStartSegment:bool * 
        isEndSegment:bool * 
        bounds:RectangleD -> LineSegment
public function LineSegment(
    point1 : PointD, 
    point2 : PointD, 
    startIndex : int, 
    endIndex : int, 
    isStartSegment : boolean, 
    isEndSegment : boolean, 
    bounds : RectangleD
)
Parameters
- point1 
 Type: Microsoft.VisualStudio.Modeling.Diagrams.PointD- segment's starting point. 
- point2 
 Type: Microsoft.VisualStudio.Modeling.Diagrams.PointD- segment's end point. 
- startIndex 
 Type: System.Int32- index of the start point of this segment in the full LinkShape. 
- endIndex 
 Type: System.Int32- index of the end point of this segment in the full LinkShape. 
- isStartSegment 
 Type: System.Boolean- whether or not this is the start segment in the LinkShape. 
- isEndSegment 
 Type: System.Boolean- whether or not this is the end segment in the LinkShape. 
- bounds 
 Type: Microsoft.VisualStudio.Modeling.Diagrams.RectangleD- bounding rectangle represented by this line segment 
.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.