PdfCanvas.DrawRectangle Method (PdfRectangle, Double)

Draws a rotated rectangle specified by a PdfRectangle structure.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public void DrawRectangle(
	PdfRectangle rect,
	double angle
)
VB
Public Sub DrawRectangle ( 
	rect As PdfRectangle,
	angle As Double
)

Parameters

rect
Type: BitMiracle.Docotic.Pdf.PdfRectangle
A PdfRectangle structure that represents the rectangle to draw.
angle
Type: System.Double
The angle of rotation in degrees.

Remarks

Rectangle gets rotated in a counter-clockwise direction.

This methods draws a non-filled rectangle.

Please use AppendRectangle() if you want to append a rectangle to the current path.

See Also