Line.Line Constructor
Line.Line Constructor |
Creates a Line structure with the specified begin and end points.
Definition
Visual Basic .NET Public Sub Line( _
ByVal beginPoint As Point, _
ByVal endPoint As Point _
)C# public Line(
Point beginPoint,
Point endPoint
);Managed C++ public: Line(
Point *beginPoint,
Point *endPoint
);
Parameters
beginPoint System.Drawing.Point. [in] The starting point of the line. endPoint System.Drawing.Point. [in] The ending point of the line.
Examples
[C#]
This C# example declares and creates a Line structure.
Line theLine = new Line(begin, end)
[Visual Basic .NET]
This C# example declares and creates a Line structure.
Dim theLine As New Line(begin, end)