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

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

Syntax

C#
public void Rotate(
	PdfRotation rotation
)
VB
Public Sub Rotate ( 
	rotation As PdfRotation
)

Parameters

rotation
Type: BitMiracle.Docotic.Pdf.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