corelibraries-devexpress-dot-xtraprinting-dot-linkbase.md
Gets or sets a value indicating whether the page orientation is landscape.
Namespace : DevExpress.XtraPrinting
Assembly : DevExpress.Printing.v25.2.Core.dll
NuGet Package : DevExpress.Printing.Core
[DefaultValue(false)]
public bool Landscape { get; set; }
<DefaultValue(False)>
Public Property Landscape As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true if the page orientation is landscape; otherwise, false.
|
If the Landscape property’s value is false , then the page orientation is Portrait.
The following code snippet (auto-collected from DevExpress Examples) contains a reference 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.
asp-net-web-forms-grid-fit-exported-document-to-page/CS/WebApplication1/Default.aspx.cs#L19
pcl.Margins.Left = pcl.Margins.Right = 50;
pcl.Landscape = true;
pcl.CreateDocument(false);
asp-net-web-forms-grid-fit-exported-document-to-page/VB/WebApplication1/Default.aspx.vb#L20
pcl.Margins.Left = pcl.Margins.Right
pcl.Landscape = True
pcl.CreateDocument(False)
See Also