com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class PageMargins



  • public class PageMargins
    extends Object

    Represents page margins for printing.

    • Constructor Summary

      Constructors 
      Constructor and Description
      PageMargins() 
    • Method Summary

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

      • PageMargins

        public PageMargins()
    • Method Detail

      • getTop

        public double getTop()

        The size of the top margin in inches or centimeters.

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

        public void setTop(double value)

        The size of the top margin in inches or centimeters.

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

        public double getBottom()

        The size of the bottom margin in inches or centimeters.

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

        public void setBottom(double value)

        The size of the bottom margin in inches or centimeters.

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

        public double getLeft()

        The size of the left margin in inches or centimeters.

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

        public void setLeft(double value)

        The size of the left margin in inches or centimeters.

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

        public double getRight()

        The size of the right margin in inches or centimeters.

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

        public void setRight(double value)

        The size of the right margin in inches or centimeters.

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

        public int getBorders()

        Specifies where to print borders. Can be one of the values of the Border enum.

        Returns:
        returns a value which specifies where to print borders.
      • setBorders

        public void setBorders(int value)

        Specifies where to print borders. Can be one of the values of the Border enum.

        Parameters:
        value - the value which specifies where to print borders.