Docotic.Pdf Library Help > BitMiracle.Docotic.Pdf > PdfCanvas Class > PdfCanvas Methods > DrawRoundedRectangle Method > DrawRoundedRectangle Method (RectangleF, SizeF, PdfDrawMode)
Draws a rectangle structure with rounded corners specified by a RectangleF structure.

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

Syntax

C#
public void DrawRoundedRectangle(
	RectangleF rect,
	SizeF cornerSize,
	PdfDrawMode mode
)
VB
Public Sub DrawRoundedRectangle ( 
	rect As RectangleF,
	cornerSize As SizeF,
	mode As PdfDrawMode
)

Parameters

rect
Type: System.Drawing.RectangleF
A RectangleF structure that represents the rectangle to draw.
cornerSize
Type: System.Drawing.SizeF
Size of the corner.
mode
Type: BitMiracle.Docotic.Pdf.PdfDrawMode
The drawing mode.

Remarks

Please use AppendRoundedRectangle Overload if you want to append a rectangle with rounded corners to the current path.

See Also