Skip to main content
All docs
V24.1

DXGraphics.DrawLine(DXPen, Single, Single, Single, Single) Method

Draws a line that connects two points.

Namespace: DevExpress.Drawing

Assembly: DevExpress.Drawing.v24.1.dll

NuGet Package: DevExpress.Drawing

Declaration

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

Parameters

Name Type Description
pen DXPen

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

x1 Single

The x-coordinate of the first point.

y1 Single

The y-coordinate of the first point.

x2 Single

The x-coordinate of the second point.

y2 Single

The y-coordinate of the second point.

See Also