Docotic.Pdf Library Help > BitMiracle.Docotic.Pdf > PdfCanvas Class > PdfCanvas Methods > DrawRectangle Method > DrawRectangle Method (RectangleF, Single, PdfDrawMode)
Draws a rotated rectangle specified by a RectangleF structure.

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

Syntax

C#
public void DrawRectangle(
	RectangleF rect,
	float angle,
	PdfDrawMode mode
)
VB
Public Sub DrawRectangle ( 
	rect As RectangleF,
	angle As Single,
	mode As PdfDrawMode
)

Parameters

rect
Type: System.Drawing.RectangleF
A RectangleF structure that represents the rectangle to draw.
angle
Type: System.Single
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