This documentation is archived and is not being maintained.

Line Constructor

Initializes a new instance of the Line structure with the specified beginning and ending points.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

public Line(
	Point beginPoint,
	Point endPoint
)

Parameters

beginPoint
Type: System.Drawing.Point

The starting point of the line.

endPoint
Type: System.Drawing.Point

The ending point of the line.

This C# example declares and creates a Line structure, theLine.

Line theLine = new Line(begin, end)

This Microsoft® Visual Basic® .NET example declares and creates a Line structure, theLine.

Dim theLine As New Line(begin, end)

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.0
Show: