---
title: "PsDocument.DrawLine"
url: "https://reference.aspose.com/page/net/aspose.page.eps/psdocument/drawline/"
product: "Aspose.Page for .NET API Reference"
description: "PsDocument method. Draws a line segment"
---

## PsDocument.DrawLine method

Draws a line segment.

```csharp
public void DrawLine(double x1, double y1, double x2, double y2)
```

| Parameter | Type | Description |
| --- | --- | --- |
| x1 | Double | X coordinate of the beginning of segment. |
| y1 | Double | Y coordinate of the beginning of segment. |
| x2 | Double | X coordinate of the end of segment. |
| y2 | Double | Y coordinate of the end of segment. |

### See Also

* class [PsDocument](../)
* namespace [Aspose.Page.EPS](../../psdocument/)
* assembly [Aspose.Page](../../../)


