共用方式為


Line 建構函式

使用指定的開始點和結束點,初始化 Line 結構的新執行個體 (Instance)。

命名空間:  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® Visual Basic® .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 命名空間