Skip to main content

TdxPDFCustomViewer.RotationAngle Property

Specifies the rotation angle applied to the document view.

Declaration

property RotationAngle: TcxRotationAngle read; write;

Property Value

Type
TcxRotationAngle

Remarks

Use this property to apply a rotation angle to the document view instead of sequentially rotating it clockwise or counterclockwise by calling the RotateClockwise or RotateCounterclockwise procedure, respectively. The available RotationAngle property values include:

Value Description Example
ra0 No rotation is applied. The document is displayed as is. No rotation
raPlus90 The document view is rotated left by 90 degrees from its initial position. Counterclockwise rotation by 90 degrees
raMinus90 The document view is rotated right by 90 degrees from its initial position. Clockwise rotation by 90 degrees
ra180 The document view is rotated by 180 degrees (that is, the document is displayed upside down). Clockwise or counterclockwise rotation by 180 degrees

An end-user can rotate the document view by pressing the Ctrl+Shift+Plus Sign(+) and/or Ctrl+Shift+Minus Sign(-) key combination or clicking the Rotate Clockwise and/or Rotate Counterclockwise items in the PDF Viewer’s context menu:

Context Menu

You can provide additional document view rotation options to an end-user by linking the RotateClockwise and RotateCounterclockwise commands to elements of your UI.

See Also