Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
Row

SheetView.Orientation Property

Returns or specifies page orientation for a printed sheet.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v22.1.Core.dll

Declaration

PageOrientation Orientation { get; set; }

Property Value

Type Description
PageOrientation

An enumeration member that specifies page orientation.

Remarks

This example demonstrates how to set the orientation of worksheet pages via the Worksheet.ActiveView.Orientation property. The PageOrientation enumerator lists available page orientation types.

Note

The WorksheetView.Orientation property value is used when worksheet pages are printed. To learn how to specify other worksheet print options, see the How to: Specify Print Settings document.

View Example

// Set the page orientation to Landscape.
workbook.Worksheets[0].ActiveView.Orientation = PageOrientation.Landscape;

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Orientation 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