Skip to main content
A newer version of this page is available. .

XtraReport.Landscape Property

Gets or sets a value indicating whether the page orientation is landscape.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v20.2.dll

NuGet Packages: DevExpress.Reporting.Core, DevExpress.WindowsDesktop.Reporting.Core

Declaration

[DefaultValue(false)]
[SRCategory(ReportStringId.CatPageSettings)]
public bool Landscape { get; set; }

Property Value

Type Default Description
Boolean false

true if the page orientation is landscape; otherwise, false.

Remarks

If the Landscape property’s value is false, then the page orientation is Portrait.

Note

When the Landscape property value is changed, then the XtraReport.PageWidth and XtraReport.PageHeight properties values will be automatically swapped with each other.

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