Search Results for

    Show / Hide Table of Contents

    Class PaperSize

    Represents the available paper sizes for setting up the document layout.

    Inheritance
    System.Object
    PaperSize
    Namespace: IronWord.Models.Enums
    Assembly: IronWord.dll
    Syntax
    public sealed class PaperSize : Enum

    Choose the sheet a section is laid out for by assigning a PaperSize to PageSetup.PaperSize. Letter and Legal are the North American sizes, A4 is the international standard for most business documents, A5 is the smaller half-A4 sheet, and Custom lets you supply your own dimensions when none of the presets fit.

    var setup = new PageSetup { PaperSize = PaperSize.A4 };

    Fields

    A4

    A4 paper size (210mm x 297mm).

    Declaration
    public const PaperSize A4
    Field Value
    Type Description
    PaperSize

    A5

    A5 paper size (148mm x 210mm).

    Declaration
    public const PaperSize A5
    Field Value
    Type Description
    PaperSize

    Custom

    Custom paper size.

    Declaration
    public const PaperSize Custom
    Field Value
    Type Description
    PaperSize

    Legal

    Legal paper size (8.5 inches x 14 inches).

    Declaration
    public const PaperSize Legal
    Field Value
    Type Description
    PaperSize

    Letter

    Letter paper size (8.5 inches x 11 inches).

    Declaration
    public const PaperSize Letter
    Field Value
    Type Description
    PaperSize

    value__

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