Delen via


LineSegment Constructor (PointD, PointD, Int32, Int32, Boolean, Boolean, RectangleD)

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

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

.NET Framework Security

See Also

Reference

LineSegment Class

LineSegment Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace