Search Results for

    Show / Hide Table of Contents

    Class Margins

    Margins to use for printing (in millimeters).

    Inheritance
    System.Object
    Margins
    Namespace: IronPrint
    Assembly: IronPrint.dll
    Syntax
    public sealed class Margins : ValueType

    Constructors

    Margins(Int32)

    Margins to use for printing with the same value for all sides (in millimeters).

    Declaration
    public Margins(int uniformMargin)
    Parameters
    Type Name Description
    System.Int32 uniformMargin

    The margin value to apply to all sides (left, top, right, and bottom).

    Margins(Int32, Int32)

    Margins for printing.

    Declaration
    public Margins(int horizontal, int vertical)
    Parameters
    Type Name Description
    System.Int32 horizontal

    Margins for left and right side of page.

    System.Int32 vertical

    Margins for top and bottom of page.

    Margins(Int32, Int32, Int32, Int32)

    Margins for printing.

    Declaration
    public Margins(int left, int top, int right, int bottom)
    Parameters
    Type Name Description
    System.Int32 left

    The left margin (in millimeters).

    System.Int32 top

    The top margin (in millimeters).

    System.Int32 right

    The right margin (in millimeters).

    System.Int32 bottom

    The bottom margin (in millimeters).

    Fields

    Bottom

    Bottom margin.

    Declaration
    public int Bottom
    Field Value
    Type Description
    System.Int32

    Left

    Left margin.

    Declaration
    public int Left
    Field Value
    Type Description
    System.Int32

    Right

    Right margin.

    Declaration
    public int Right
    Field Value
    Type Description
    System.Int32

    Top

    Top margin.

    Declaration
    public int Top
    Field Value
    Type Description
    System.Int32

    Zero

    No margins.

    Declaration
    public static Margins Zero
    Field Value
    Type Description
    Margins
    ☀
    ☾
    Downloads
    • Download with NuGet
    • Start for Free
    In This Article
    Back to top
    Install with NuGet
    Want to deploy IronPrint to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronPrint free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.