指定された始点と終点を使用して、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
)
パラメータ
- beginPoint
型 : System.Drawing.Point
線の始点。
- endPoint
型 : System.Drawing.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