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)

public:
LineSegment(
	PointD point1,
	PointD point2,
	int startIndex,
	int endIndex,
	bool isStartSegment,
	bool isEndSegment,
	RectangleD bounds
)

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

Return to top
Show: