com.aspose.html.drawing

Class Margin



  • public class Margin
    extends Object

    Represents page margin.

    • Constructor Detail

      • Margin

        public Margin()

        Initializes a new instance of the Margin class.

      • Margin

        public Margin(int anyMargin)

        Initializes a new instance of the Margin class.

        Parameters:
        anyMargin - Any margin size.
      • Margin

        public Margin(Length anyMargin)

        Initializes a new instance of the Margin class.

        Parameters:
        anyMargin - Any margin size.
      • Margin

        public Margin(int left,
                      int top,
                      int right,
                      int bottom)

        Initializes a new instance of the Margin class.

        Parameters:
        left - The left size.
        top - The top size.
        right - The right size.
        bottom - The bottom size.
      • Margin

        public Margin(Length left,
                      Length top,
                      Length right,
                      Length bottom)

        Initializes a new instance of the Margin class.

        Parameters:
        left - The left size.
        top - The top size.
        right - The right size.
        bottom - The bottom size.
    • Method Detail

      • getTop

        public LengthOrAuto getTop()

        Gets or sets the top.

        Value: The top.
      • setTop

        public void setTop(LengthOrAuto value)

        Gets or sets the top.

        Value: The top.
      • getRight

        public LengthOrAuto getRight()

        Gets or sets the right.

        Value: The right.
      • setRight

        public void setRight(LengthOrAuto value)

        Gets or sets the right.

        Value: The right.
      • getBottom

        public LengthOrAuto getBottom()

        Gets or sets the bottom.

        Value: The bottom.
      • setBottom

        public void setBottom(LengthOrAuto value)

        Gets or sets the bottom.

        Value: The bottom.
      • getLeft

        public LengthOrAuto getLeft()

        Gets or sets the left.

        Value: The left.
      • setLeft

        public void setLeft(LengthOrAuto value)

        Gets or sets the left.

        Value: The left.