The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

SectionPage.Landscape Property

Gets or sets a value that specifies whether the page's orientation is landscape.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v19.1.Core.dll

Declaration

bool Landscape { get; set; }
Property Landscape As Boolean
bool Landscape { get; set; }
Property Landscape As Boolean

Property Value

Type Description
Boolean

true, if the page's orientation is landscape; false, if the page has the standard portrait orientation.

Property Value

Type Description
Boolean

true, if the page's orientation is landscape; false, if the page has the standard portrait orientation.

Remarks

When you set the Landscape property, the RichEditControl rotates this page so that its width becomes height and vice versa. Relative width and height values are not validated, therefore, a situation in which the page in landscape mode has a height greater than its width, is not uncommon. To prevent this from happening, check the page dimensions prior to switching page orientation, as illustrated below.


if(section.Page.Width < section.Page.Height)
    {
        section.Page.Landscape = true;
    }
See Also