Skip to main content

PdfPrinterSettings.PageOrientation Property

Specifies the orientation of pages to be printed.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Pdf.v24.1.Drawing.dll

NuGet Package: DevExpress.Pdf.Drawing

Declaration

public PdfPrintPageOrientation PageOrientation { get; set; }

Property Value

Type Description
PdfPrintPageOrientation

A PdfPrintPageOrientation value. The default value is PdfPrintPageOrientation.Auto.

Available values:

Name Description
Auto

The orientation is defined automatically to fit the page content to the specific paper type.

Portrait

Orientation of the document pages is portrait.

Landscape

Orientation of the document pages is landscape.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to PageOrientation
WinForms Controls PdfPageSetupDialogShowingEventArgs
.PrinterSettings .PageOrientation
WPF Controls PageSetupDialogShowingEventArgs
.PrinterSettings .PageOrientation

Remarks

Note that some printers may ignore the PageOrientation property. In this case, page orientation can be customized in printer driver properties.

The following code snippets (auto-collected from DevExpress Examples) contain references to the PageOrientation 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.

See Also