Skip to main content
All docs
V24.1

DXGraphics.DrawLine(DXPen, PointF, PointF) 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,
    PointF pt1,
    PointF pt2
)

Parameters

Name Type Description
pen DXPen

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

pt1 PointF

The starting point of the line.

pt2 PointF

The end point of the line.

See Also