Skip to main content

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.v23.2.Core.dll

NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation

Declaration

bool Landscape { get; set; }

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;
    }

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