
## line_to {#float-float}

Connects the last point in the subpath to the x, y coordinates with a straight line.



```python
def line_to(self, x, y):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| x | float | The x axis of the coordinate for the end of the line. |
| y | float | The y axis of the coordinate for the end of the line. |



### See Also
* module [`aspose.html.dom.canvas`](../../)
* class [`Path2D`](/html/python-net/aspose.html.dom.canvas/path2d)
