## AddLine(PointF, PointF) {#addline_1}

Appends a line segment to this GraphicsPath.

```csharp
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

* struct [PointF](../../../system.drawing/pointf/)
* class [GraphicsPath](../)
* namespace [System.Drawing.Drawing2D](../../graphicspath/)
* assembly [Aspose.Drawing](../../../)

---

## AddLine(float, float, float, float) {#addline}

Appends a line segment to this GraphicsPath.

```csharp
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

* class [GraphicsPath](../)
* namespace [System.Drawing.Drawing2D](../../graphicspath/)
* assembly [Aspose.Drawing](../../../)


