---
title: "Path2D.MoveTo"
url: "https://reference.aspose.com/html/net/aspose.html.dom.canvas/path2d/moveto/"
product: "Aspose.HTML for .NET API Reference"
description: "Path2D MoveTo method. Moves the starting point of a new sub-path to the x y coordinates"
---

## Path2D.MoveTo method

Moves the starting point of a new sub-path to the (x, y) coordinates.

```csharp
public void MoveTo(double x, double y)
```

| Parameter | Type | Description |
| --- | --- | --- |
| x | Double | The x axis of the point |
| y | Double | The y axis of the point |

### See Also

* class [Path2D](../)
* namespace [Aspose.Html.Dom.Canvas](../../../aspose.html.dom.canvas/)
* assembly [Aspose.HTML](../../../)
