Table of Contents

Method Rotate

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

Rotate(PdfRotation)

Rotates control around top-left control's corner, counter-clockwise, relative to the page. Useful when PdfPage is rotated.

public void Rotate(PdfRotation rotation)

Parameters

rotation PdfRotation

The rotation angle relative to the page rotation. Usually it should be equal to Rotation.

Remarks

Please note that rotation angle doesn't depend on the current rotation angle of the control. All rotation is made relative to the page only. Examples:

2 sequential calls: Rotate(PdfRotation.Rotate90); Rotate(PdfRotation.Rotate90); will rotate control on 90 degrees, not 180. I.e. second call doesn't affect rotation, because rotation angle is the same.

2 sequential calls: Rotate(PdfRotation.Rotate90); Rotate(PdfRotation.Rotate270); will rotate control on 270 degrees. The result of first rotation will be overwritten.

See Also