Method AddLine
AddLine(PointD, PointD)
Appends a line segment to this GraphicsPath.
public void AddLine(PointD pt1, PointD pt2)
Parameters
pt1
PointDA PointD that represents the starting point of the line.
pt2
PointDA PointD that represents the endpoint of the line.
Remarks
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.