com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class MarginInfo

  • All Implemented Interfaces:
    com.aspose.ms.System.ICloneable


    public final class MarginInfo
    extends Object
    implements com.aspose.ms.System.ICloneable

    This class represents a margin for different objects.

    • Constructor Summary

      Constructors 
      Constructor and Description
      MarginInfo()
      Initializes a new instance of the MarginInfo class.
      MarginInfo(double left, double bottom, double right, double top)
      Constructor of Rectangle.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      Object deepClone()
      Clones a new MarginInfo object.
      double getBottom()
      Gets a float value that indicates the bottom margin.
      double getLeft()
      Gets a float value that indicates the left margin.
      double getRight()
      Gets a float value that indicates the right margin.
      double getTop()
      Gets a float value that indicates the top margin.
      void setBottom(double value)
      Sets a float value that indicates the bottom margin.
      void setLeft(double value)
      Sets a float value that indicates the left margin.
      void setRight(double value)
      Sets a float value that indicates the right margin.
      void setTop(double value)
      Sets a float value that indicates the top margin.
    • Constructor Detail

      • MarginInfo

        public MarginInfo()

        Initializes a new instance of the MarginInfo class.

      • MarginInfo

        public MarginInfo(double left,
                  double bottom,
                  double right,
                  double top)

        Constructor of Rectangle.

        Parameters:
        left - Left margin.
        bottom - Bottom margin
        right - Right margin.
        top - Top margin.
    • Method Detail

      • getLeft

        public double getLeft()

        Gets a float value that indicates the left margin.

        Returns:
        double value
      • setLeft

        public void setLeft(double value)

        Sets a float value that indicates the left margin.

        Parameters:
        value - double value
      • getRight

        public double getRight()

        Gets a float value that indicates the right margin.

        Returns:
        double value
      • setRight

        public void setRight(double value)

        Sets a float value that indicates the right margin.

        Parameters:
        value - double value
      • getTop

        public double getTop()

        Gets a float value that indicates the top margin.

        Returns:
        double value
      • setTop

        public void setTop(double value)

        Sets a float value that indicates the top margin.

        Parameters:
        value - double value
      • getBottom

        public double getBottom()

        Gets a float value that indicates the bottom margin.

        Returns:
        double value
      • setBottom

        public void setBottom(double value)

        Sets a float value that indicates the bottom margin.

        Parameters:
        value - double value
      • deepClone

        public Object deepClone()

        Clones a new MarginInfo object.

        Specified by:
        deepClone in interface com.aspose.ms.System.ICloneable
        Returns:
        The new object.