Docotic.Pdf Library Help > BitMiracle.Docotic.Pdf > PdfCanvas Class > PdfCanvas Methods > DrawRectangle Method > DrawRectangle Method (PdfRectangle, Double, PdfDrawMode)
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,
	PdfDrawMode mode
)
VB
Public Sub DrawRectangle ( 
	rect As PdfRectangle,
	angle As Double,
	mode As PdfDrawMode
)

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.
mode
Type: BitMiracle.Docotic.Pdf.PdfDrawMode
The drawing mode.

Remarks

Rectangle gets rotated in a counter-clockwise direction.

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

See Also