Search Results for

    Show / Hide Table of Contents

    Class PrintOrientation

    Enum that represents different print orientations

    Inheritance
    System.Object
    PrintOrientation
    Namespace: IronXL.Printing
    Assembly: IronXL.dll
    Syntax
    public sealed class PrintOrientation : Enum

    PrintOrientation sets whether a worksheet prints upright or sideways, assigned to IPrintSetup.PrintOrientation. Portrait is the standard tall layout for most reports, Landscape turns the page wide to fit broad tables and many columns, and Default leaves the orientation to the printer or template. The Excel print setup example configures orientation alongside the print area and paper size.

    worksheet.PrintSetup.PrintOrientation = PrintOrientation.Landscape;

    Fields

    Default

    The default print orientation

    Declaration
    public const PrintOrientation Default
    Field Value
    Type Description
    PrintOrientation

    Landscape

    The landscape print orientation

    Declaration
    public const PrintOrientation Landscape
    Field Value
    Type Description
    PrintOrientation

    Portrait

    The portrait print orientation

    Declaration
    public const PrintOrientation Portrait
    Field Value
    Type Description
    PrintOrientation

    value__

    Declaration
    public short value__
    Field Value
    Type Description
    System.Int16
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget