Skip to main content
All docs
V25.1
  • Row

    SheetView.Orientation Property

    Returns or specifies page orientation for a printed sheet.

    Namespace: DevExpress.Spreadsheet

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

    NuGet Package: DevExpress.Spreadsheet.Core

    Declaration

    PageOrientation Orientation { get; set; }

    Property Value

    Type Description
    PageOrientation

    An enumeration member that specifies page orientation.

    Available values:

    Name Description
    Default

    Worksheet page orientation is default.

    Landscape

    Worksheet page orientation is landscape.

    Portrait

    Worksheet page orientation is portrait.

    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 snippets (auto-collected from DevExpress Examples) contain references 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