AddLine

GraphicsPath.AddLine method (1 of 2)

Appends a line segment to this GraphicsPath.

public void AddLine(PointF pt1, PointF pt2)
Parameter Type Description
pt1 PointF A PointF that represents the starting point of the line.
pt2 PointF A PointF that represents the endpoint of the line.

See Also


GraphicsPath.AddLine method (2 of 2)

Appends a line segment to this GraphicsPath.

public void AddLine(float x1, float y1, float x2, float y2)
Parameter Type Description
x1 Single The x-coordinate of the starting point of the line.
y1 Single The y-coordinate of the starting point of the line.
x2 Single The x-coordinate of the endpoint of the line.
y2 Single The y-coordinate of the endpoint of the line.

See Also