Line 构造函数

用指定的起点和终点初始化 Line 结构的新实例。

命名空间:  Microsoft.Ink
程序集:  Microsoft.Ink(在 Microsoft.Ink.dll 中)

语法

声明
Public Sub New ( _
    beginPoint As Point, _
    endPoint As Point _
)
用法
Dim beginPoint As Point
Dim endPoint As Point

Dim instance As New Line(beginPoint, _
    endPoint)
public Line(
    Point beginPoint,
    Point endPoint
)
public:
Line(
    Point beginPoint, 
    Point endPoint
)
public Line(
    Point beginPoint,
    Point endPoint
)
public function Line(
    beginPoint : Point, 
    endPoint : Point
)

参数

示例

此 C# 示例声明并创建一个 Line 结构 theLine。

Line theLine = new Line(begin, end)

此 Microsoft(R) Visual Basic(R) .NET 示例声明并创建一个 Line 结构 theLine。

Dim theLine As New Line(begin, end)

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

Line 结构

Line 成员

Microsoft.Ink 命名空间