Click or drag to resize

PdfCanvas DrawLine Method (PdfPen, Single, Single, Single, Single)

Draws a line.

Namespace: Spire.Pdf.Graphics
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public void DrawLine(
	PdfPen pen,
	float x1,
	float y1,
	float x2,
	float y2
)

Parameters

pen
Type: Spire.Pdf.Graphics PdfPen
The pen.
x1
Type: System Single
The x1.
y1
Type: System Single
The y1.
x2
Type: System Single
The x2.
y2
Type: System Single
The y2.
See Also