Back to Devexpress

PdfViewer.RotationAngle Property

windowsforms-devexpress-dot-xtrapdfviewer-dot-pdfviewer-051f463a.md

latest2.8 KB
Original Source

PdfViewer.RotationAngle Property

Specifies the rotation angle of a document in the PdfViewer.

Namespace : DevExpress.XtraPdfViewer

Assembly : DevExpress.XtraPdfViewer.v25.2.dll

NuGet Package : DevExpress.Win.PdfViewer

Declaration

csharp
[DefaultValue(0)]
public int RotationAngle { get; set; }
vb
<DefaultValue(0)>
Public Property RotationAngle As Integer

Property Value

TypeDefaultDescription
Int320

An integer value, specifying the rotation angle of document pages (in degrees). This value must be multiple of 90.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RotationAngle property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

pdf-viewer-get-page-info/CS/pdf-viewer-sticky-note/Form1.cs#L54

csharp
var pageInfo = pdfViewer.GetPageInfo(1);
int normalizedAngle = NormalizeRotate(pdfViewer.RotationAngle + pageInfo.RotationAngle);
var cropBox = pageInfo.CropBox;

pdf-viewer-get-page-info/VB/pdf-viewer-sticky-note/Form1.vb#L51

vb
Dim pageInfo = pdfViewer.GetPageInfo(1)
Dim normalizedAngle As Integer = NormalizeRotate(pdfViewer.RotationAngle + pageInfo.RotationAngle)
Dim cropBox = pageInfo.CropBox

See Also

PdfRotatePageClockwiseCommand

PdfRotatePageCounterclockwiseCommand

PdfViewer Class

PdfViewer Members

DevExpress.XtraPdfViewer Namespace