Click or drag to resize

PdfCanvas DrawRectangle Method (PdfPen, Single, Single, Single, Single)

Draws a rectangle.

Namespace: Spire.Pdf.Graphics
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public void DrawRectangle(
	PdfPen pen,
	float x,
	float y,
	float width,
	float height
)

Parameters

pen
Type: Spire.Pdf.Graphics PdfPen
The pen.
x
Type: System Single
The x.
y
Type: System Single
The y.
width
Type: System Single
The width.
height
Type: System Single
The height.
See Also