Freigeben über


LineSegment Constructors

Definition

Overloads

LineSegment(PointD, PointD)

Constructor that takes the two end points

LineSegment(LinkShape, Int32, Int32)

Constructor that takes the parent LinkShape and indices for the two end points.

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

Constructor that takes the two end points and its segment index.

LineSegment(PointD, PointD)

Constructor that takes the two end points

public:
 LineSegment(Microsoft::VisualStudio::Modeling::Diagrams::PointD point1, Microsoft::VisualStudio::Modeling::Diagrams::PointD point2);
public LineSegment (Microsoft.VisualStudio.Modeling.Diagrams.PointD point1, Microsoft.VisualStudio.Modeling.Diagrams.PointD point2);
new Microsoft.VisualStudio.Modeling.Diagrams.LineSegment : Microsoft.VisualStudio.Modeling.Diagrams.PointD * Microsoft.VisualStudio.Modeling.Diagrams.PointD -> Microsoft.VisualStudio.Modeling.Diagrams.LineSegment
Public Sub New (point1 As PointD, point2 As PointD)

Parameters

point1
PointD

segment's starting point.

point2
PointD

segment's end point.

Applies to

LineSegment(LinkShape, Int32, Int32)

Constructor that takes the parent LinkShape and indices for the two end points.

public:
 LineSegment(Microsoft::VisualStudio::Modeling::Diagrams::LinkShape ^ linkShape, int indexStart, int indexEnd);
public LineSegment (Microsoft.VisualStudio.Modeling.Diagrams.LinkShape linkShape, int indexStart, int indexEnd);
new Microsoft.VisualStudio.Modeling.Diagrams.LineSegment : Microsoft.VisualStudio.Modeling.Diagrams.LinkShape * int * int -> Microsoft.VisualStudio.Modeling.Diagrams.LineSegment
Public Sub New (linkShape As LinkShape, indexStart As Integer, indexEnd As Integer)

Parameters

linkShape
LinkShape

LinkShape this segment belongs to.

indexStart
Int32

segment's starting point.

indexEnd
Int32

segment's end point.

Applies to

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

Constructor that takes the two end points and its segment index.

public:
 LineSegment(Microsoft::VisualStudio::Modeling::Diagrams::PointD point1, Microsoft::VisualStudio::Modeling::Diagrams::PointD point2, int startIndex, int endIndex, bool isStartSegment, bool isEndSegment, Microsoft::VisualStudio::Modeling::Diagrams::RectangleD bounds);
public LineSegment (Microsoft.VisualStudio.Modeling.Diagrams.PointD point1, Microsoft.VisualStudio.Modeling.Diagrams.PointD point2, int startIndex, int endIndex, bool isStartSegment, bool isEndSegment, Microsoft.VisualStudio.Modeling.Diagrams.RectangleD bounds);
new Microsoft.VisualStudio.Modeling.Diagrams.LineSegment : Microsoft.VisualStudio.Modeling.Diagrams.PointD * Microsoft.VisualStudio.Modeling.Diagrams.PointD * int * int * bool * bool * Microsoft.VisualStudio.Modeling.Diagrams.RectangleD -> Microsoft.VisualStudio.Modeling.Diagrams.LineSegment
Public Sub New (point1 As PointD, point2 As PointD, startIndex As Integer, endIndex As Integer, isStartSegment As Boolean, isEndSegment As Boolean, bounds As RectangleD)

Parameters

point1
PointD

segment's starting point.

point2
PointD

segment's end point.

startIndex
Int32

index of the start point of this segment in the full LinkShape.

endIndex
Int32

index of the end point of this segment in the full LinkShape.

isStartSegment
Boolean

whether or not this is the start segment in the LinkShape.

isEndSegment
Boolean

whether or not this is the end segment in the LinkShape.

bounds
RectangleD

bounding rectangle represented by this line segment

Applies to