Konstruktor LineSegment — (PointD, PointD, Int32, Int32, Boolean, Boolean, RectangleD)
Konstruktor, który przyjmuje dwa punkty końcowe i jej indeks segmentu.
Przestrzeń nazw: Microsoft.VisualStudio.Modeling.Diagrams
Zestaw: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (w Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)
Składnia
'Deklaracja
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
)
Parametry
- point1
Typ: Microsoft.VisualStudio.Modeling.Diagrams.PointD
punkt początkowy segmentu.
- point2
Typ: Microsoft.VisualStudio.Modeling.Diagrams.PointD
punkt końcowy segmentu.
- startIndex
Typ: System.Int32
Indeks punkt początkowy tego segmentu w pełnej LinkShape.
- endIndex
Typ: System.Int32
Indeks punktu końcowego tego segmentu w pełnej LinkShape.
- isStartSegment
Typ: System.Boolean
niezależnie od tego, czy jest to segmentu start w LinkShape.
- isEndSegment
Typ: System.Boolean
niezależnie od tego, czy jest to koniec segmentu w LinkShape.
- bounds
Typ: Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
prostokąta obwiedni, reprezentowane przez ten wiersz segmentu
Zabezpieczenia programu .NET Framework
- Pełne zaufanie do bezpośredniego wywołującego. Tego elementu członkowskiego nie można używać w kodzie częściowo zaufanym. Aby uzyskać więcej informacji, zobacz Przy użyciu bibliotek z częściowo zaufanego kodu..