com.aspose.tasks

Interfaces

Classes

Exceptions

Class PageMargins


  • public class PageMargins
    extends Object

    Represents page margins for printing.

    • Constructor Summary

      Constructors 
      Constructor Description
      PageMargins()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getBorders()
      Gets a position where to print borders.
      double getBottom()
      Gets the size of the bottom margin in inches or centimeters.
      double getLeft()
      Gets the size of the left margin in inches or centimeters.
      double getRight()
      Gets the size of the right margin in inches or centimeters.
      double getTop()
      Gets the size of the top margin in inches or centimeters.
      void setBorders​(int value)
      Sets a position where to print borders.
      void setBottom​(double value)
      Sets the size of the bottom margin in inches or centimeters.
      void setLeft​(double value)
      Sets the size of the left margin in inches or centimeters.
      void setRight​(double value)
      Sets the size of the right margin in inches or centimeters.
      void setTop​(double value)
      Sets the size of the top margin in inches or centimeters.
    • Constructor Detail

      • PageMargins

        public PageMargins()
    • Method Detail

      • getBorders

        public final int getBorders()

        Gets a position where to print borders. Can be one of the values of the Border enumeration.

        Returns:
        a position where to print borders.
      • setBorders

        public final void setBorders​(int value)

        Sets a position where to print borders. Can be one of the values of the Border enumeration.

        Parameters:
        value - a position where to print borders.
      • getBottom

        public final double getBottom()

        Gets the size of the bottom margin in inches or centimeters.

        Returns:
        the size of the bottom margin in inches or centimeters.
      • setBottom

        public final void setBottom​(double value)

        Sets the size of the bottom margin in inches or centimeters.

        Parameters:
        value - the size of the bottom margin in inches or centimeters.
      • getLeft

        public final double getLeft()

        Gets the size of the left margin in inches or centimeters.

        Returns:
        the size of the left margin in inches or centimeters.
      • setLeft

        public final void setLeft​(double value)

        Sets the size of the left margin in inches or centimeters.

        Parameters:
        value - the size of the left margin in inches or centimeters.
      • getRight

        public final double getRight()

        Gets the size of the right margin in inches or centimeters.

        Returns:
        the size of the right margin in inches or centimeters.
      • setRight

        public final void setRight​(double value)

        Sets the size of the right margin in inches or centimeters.

        Parameters:
        value - the size of the right margin in inches or centimeters.
      • getTop

        public final double getTop()

        Gets the size of the top margin in inches or centimeters.

        Returns:
        the size of the top margin in inches or centimeters.
      • setTop

        public final void setTop​(double value)

        Sets the size of the top margin in inches or centimeters.

        Parameters:
        value - the size of the top margin in inches or centimeters.