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

      • getBorders

        public final 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 final 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.
      • getBottom

        public final 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 final 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 final 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 final 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 final 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 final 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.
      • getTop

        public final 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 final 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.