Table of Contents

Method AppendRectangle

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

AppendRectangle(PdfRectangle)

Appends a rectangle specified by a PdfRectangle structure to the current path as a complete subpath.

public void AppendRectangle(PdfRectangle rect)

Parameters

rect PdfRectangle

A PdfRectangle structure that represents the rectangle to append.

Remarks

Note that the call to this method does not place any marks on the canvas; only the painting operators (StrokePath(), CloseAndStrokePath(), FillPath, FillAndStrokePath) do that.

Please use DrawRectangle if you want to draw a rectangle immediately.

AppendRectangle(PdfRectangle, double)

Appends a rotated rectangle specified by a PdfRectangle structure to the current path as a complete subpath.

public void AppendRectangle(PdfRectangle rect, double angle)

Parameters

rect PdfRectangle

A PdfRectangle structure that represents the rectangle to append.

angle double

The angle of rotation in degrees.

Remarks

Rectangle gets rotated in a counter-clockwise direction.

Note that the call to this method does not place any marks on the canvas; only the painting operators (StrokePath(), CloseAndStrokePath(), FillPath, FillAndStrokePath) do that.

Please use DrawRectangle if you want to draw a rectangle immediately.