Search Results for

    Show / Hide Table of Contents

    Class MeasurementUnit

    The unit of measurement used for positioning and sizing.

    Inheritance
    System.Object
    MeasurementUnit
    Namespace: IronPdf.Editing
    Assembly: IronPdf.dll
    Syntax
    public sealed class MeasurementUnit : Enum

    The MeasurementUnit enumeration in IronPDF declares the unit used when specifying lengths for positioning, sizing, and margins.

    Part of the IronPdf.Editing namespace, it includes Pixel, Inch, Millimeter, Centimeter, Points, and Percentage (6 total).

    Combine with a Length value to feed properties on ChromePdfRenderer, stampers, and margin settings. See Custom Paper Size for unit-based sizing in C#.

    Fields

    Centimeter

    Measurement unit of the centimeter metric unit.

    Declaration
    public const MeasurementUnit Centimeter
    Field Value
    Type Description
    MeasurementUnit

    Inch

    Measurement unit of the inch imperial unit.

    Declaration
    public const MeasurementUnit Inch
    Field Value
    Type Description
    MeasurementUnit

    Millimeter

    Measurement unit of the millimeter metric unit. Equal to 1/10 of one centimeter.

    Declaration
    public const MeasurementUnit Millimeter
    Field Value
    Type Description
    MeasurementUnit

    Percentage

    Measurement unit of Percentage.

    Declaration
    public const MeasurementUnit Percentage
    Field Value
    Type Description
    MeasurementUnit

    Pixel

    Measurement unit of pixel.

    Declaration
    public const MeasurementUnit Pixel
    Field Value
    Type Description
    MeasurementUnit

    Points

    Measurement unit of the point unit.

    Declaration
    public const MeasurementUnit Points
    Field Value
    Type Description
    MeasurementUnit

    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