GraphicsPath::AddLine Method (PointF, PointF)
.NET Framework (current version)
Appends a line segment to this GraphicsPath.
Assembly: System.Drawing (in System.Drawing.dll)
Parameters
- pt1
-
Type:
System.Drawing::PointF
A PointF that represents the starting point of the line.
- pt2
-
Type:
System.Drawing::PointF
A PointF that represents the endpoint of the line.
This method adds the line segment defined by the specified points to the end of this GraphicsPath. If there are previous lines or curves in the GraphicsPath, a line segment is drawn to connect the last point in the path to the first point in the new line segment.
For an example, see AddLine(Int32, Int32, Int32, Int32).
.NET Framework
Available since 1.1
Available since 1.1
Show: