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

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

Syntax

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

Parameters

rect
Type: BitMiracle.Docotic.Pdf.PdfRectangle
A PdfRectangle structure that represents the rectangle to draw.
cornerSize
Type: BitMiracle.Docotic.Pdf.PdfSize
Size of the corners.
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