Back to Devexpress

LinkBase.Landscape Property

corelibraries-devexpress-dot-xtraprinting-dot-linkbase.md

latest2.5 KB
Original Source

LinkBase.Landscape Property

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

Declaration

csharp
[DefaultValue(false)]
public bool Landscape { get; set; }
vb
<DefaultValue(False)>
Public Property Landscape As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

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

|

Remarks

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

csharp
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

vb
pcl.Margins.Left = pcl.Margins.Right
pcl.Landscape = True
pcl.CreateDocument(False)

See Also

LinkBase Class

LinkBase Members

DevExpress.XtraPrinting Namespace