---
title: "Path2D.LineTo"
url: "https://reference.aspose.com/html/net/aspose.html.dom.canvas/path2d/lineto/"
product: "Aspose.HTML for .NET API Reference"
description: "Path2D LineTo method. Connects the last point in the subpath to the x y coordinates with a straight line"
---

## Path2D.LineTo method

Connects the last point in the subpath to the x, y coordinates with a straight line.

```csharp
public void LineTo(double x, double y)
```

| Parameter | Type | Description |
| --- | --- | --- |
| x | Double | The x axis of the coordinate for the end of the line. |
| y | Double | The y axis of the coordinate for the end of the line. |

### See Also

* class [Path2D](../)
* namespace [Aspose.Html.Dom.Canvas](../../../aspose.html.dom.canvas/)
* assembly [Aspose.HTML](../../../)
