采用两个端点和其段索引的构造函数。
命名空间: 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
)
参数
- point1
类型:Microsoft.VisualStudio.Modeling.Diagrams.PointD
线段的起点。
- point2
类型:Microsoft.VisualStudio.Modeling.Diagrams.PointD
线段的终点。
- startIndex
类型:System.Int32
索引完整的 LinkShape 中这段的起点。
- endIndex
类型:System.Int32
索引完整的 LinkShape 中这段的终点。
- isStartSegment
类型:System.Boolean
此值是否处于 LinkShape 的开始段。
- isEndSegment
类型:System.Boolean
此值是否处于 LinkShape 的末尾段。
- bounds
类型:Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
此线段表示的绑定矩形
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。