Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

PdfGraphics.DrawLine(Pen, Single, Single, Single, Single) Method

Draws a line connecting two points on the page specified by the coordinate pairs.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Pdf.v19.1.Drawing.dll

Declaration

public void DrawLine(
    Pen pen,
    float x1,
    float y1,
    float x2,
    float y2
)

Parameters

Name Type Description
pen Pen

A Pen object that determines the color, width, and style of the line.

x1 Single

A Single object that represents the x-coordinate of the first point.

y1 Single

A Single object that represents the y-coordinate of the first point.

x2 Single

A Single object that represents the x-coordinate of the second point.

y2 Single

A Single object that represents the y-coordinate of the second point.

Remarks

Use the DrawLine method to draw a line connecting the two points specified by the x1, y1 and x2, y2 coordinates.

See Also