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
point1
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointDsegment's starting point.
point2
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointDsegment's end point.
startIndex
Type: System.Int32index of the start point of this segment in the full LinkShape.
endIndex
Type: System.Int32index of the end point of this segment in the full LinkShape.
isStartSegment
Type: System.Booleanwhether or not this is the start segment in the LinkShape.
isEndSegment
Type: System.Booleanwhether or not this is the end segment in the LinkShape.
bounds
Type: Microsoft.VisualStudio.Modeling.Diagrams.RectangleDbounding 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.