GraphicsPath.AddLine

AddLine(PointF, PointF)

Appends a line segment to this GraphicsPath.

public void AddLine(PointF pt1, PointF pt2)
ParameterTypeDescription
pt1PointFA PointF that represents the starting point of the line.
pt2PointFA PointF that represents the endpoint of the line.

See Also


AddLine(float, float, float, float)

Appends a line segment to this GraphicsPath.

public void AddLine(float x1, float y1, float x2, float y2)
ParameterTypeDescription
x1SingleThe x-coordinate of the starting point of the line.
y1SingleThe y-coordinate of the starting point of the line.
x2SingleThe x-coordinate of the endpoint of the line.
y2SingleThe y-coordinate of the endpoint of the line.

See Also