.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.v21.1.Core.dll


bool Landscape { get; set; }

Property Value

Type Description

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


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