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)
Syntax
'Declaration
Public Sub New ( _
beginPoint As Point, _
endPoint As Point _
)
'Usage
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 function Line(
beginPoint : Point,
endPoint : Point
)
Parameters
beginPoint
Type: System.Drawing.PointThe starting point of the line.
endPoint
Type: System.Drawing.PointThe ending point of the line.
Examples
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)
Platforms
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.
Version Information
.NET Framework
Supported in: 3.0