LineSegment 构造函数 (PointD, PointD, Int32, Int32, Boolean, Boolean, RectangleD)

采用两个端点和其段索引的构造函数。

命名空间:  Microsoft.VisualStudio.Modeling.Diagrams
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 中)

语法

声明
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
)

参数

  • startIndex
    类型:System.Int32
    索引完整的 LinkShape 中这段的起点。
  • endIndex
    类型:System.Int32
    索引完整的 LinkShape 中这段的终点。
  • isStartSegment
    类型:System.Boolean
    此值是否处于 LinkShape 的开始段。
  • isEndSegment
    类型:System.Boolean
    此值是否处于 LinkShape 的末尾段。

.NET Framework 安全性

请参阅

参考

LineSegment 类

LineSegment 重载

Microsoft.VisualStudio.Modeling.Diagrams 命名空间