com.aspose.tasks

Interfaces

Classes

Exceptions

Class PageSettings


  • public class PageSettings
    extends Object

    Represents printing settings for a page of project view.

    • Constructor Detail

      • PageSettings

        public PageSettings()

        Initializes a new instance of the PageSettings class. Represents printing settings for a page of project view.

    • Method Detail

      • getAdjustToPercentOfNormalSize

        public final boolean getAdjustToPercentOfNormalSize()

        Gets a value indicating whether to adjust printing to the specified percentage of normal size.

        Returns:
        a value indicating whether to adjust printing to the specified percentage of normal size.
      • setAdjustToPercentOfNormalSize

        public final void setAdjustToPercentOfNormalSize​(boolean value)

        Sets a value indicating whether to adjust printing to the specified percentage of normal size.

        Parameters:
        value - a value indicating whether to adjust printing to the specified percentage of normal size.
      • getFirstPageNumber

        public final short getFirstPageNumber()

        Gets a first page number for printing.

        Returns:
        a first page number for printing.
      • setFirstPageNumber

        public final void setFirstPageNumber​(short value)

        Sets a first page number for printing.

        Parameters:
        value - a first page number for printing.
      • getPagesInHeight

        public final int getPagesInHeight()

        Gets a number of pages in height to be printed.

        Returns:
        a number of pages in height to be printed.
      • setPagesInHeight

        public final void setPagesInHeight​(int value)

        Sets a number of pages in height to be printed.

        Parameters:
        value - a number of pages in height to be printed.
      • getPagesInWidth

        public final int getPagesInWidth()

        Gets a number of pages in width to be printed.

        Returns:
        a number of pages in width to be printed.
      • setPagesInWidth

        public final void setPagesInWidth​(int value)

        Sets a number of pages in width to be printed.

        Parameters:
        value - a number of pages in width to be printed.
      • getPaperSize

        public final int getPaperSize()

        Gets a paper size. Can be one of the values of the PrinterPaperSize enumeration.

        Returns:
        a paper size.
      • setPaperSize

        public final void setPaperSize​(int value)

        Sets a paper size. Can be one of the values of the PrinterPaperSize enumeration.

        Parameters:
        value - a paper size.
      • getPaperSizeId

        public final int getPaperSizeId()

        Gets an integer representing one of the PrinterPaperSize values or a custom page size id. This value can be used to get PaperSize from OS settings ().

        Returns:
        an integer representing one of the PrinterPaperSize values or a custom page size id.
        See Also:
        System.Drawing.Printing.PrinterSettings.PaperSizes, PrinterSettings.getPaperSizes()
      • setPaperSizeId

        public final void setPaperSizeId​(int value)

        Sets an integer representing one of the PrinterPaperSize values or a custom page size id. This value can be used to get PaperSize from OS settings ().

        Parameters:
        value - an integer representing one of the PrinterPaperSize values or a custom page size id.
        See Also:
        System.Drawing.Printing.PrinterSettings.PaperSizes, PrinterSettings.getPaperSizes()
      • getPercentOfNormalSize

        public final int getPercentOfNormalSize()

        Gets a percentage of normal size to adjust printing to.

        Returns:
        a percentage of normal size to adjust printing to.
      • setPercentOfNormalSize

        public final void setPercentOfNormalSize​(int value)

        Sets a percentage of normal size to adjust printing to.

        Parameters:
        value - a percentage of normal size to adjust printing to.
      • isPortrait

        public final boolean isPortrait()

        Gets a value indicating whether the page orientation is portrait; returns false if the page orientation is landscape.

        Returns:
        a value indicating whether the page orientation is portrait; returns false if the page orientation is landscape.
      • setPortrait

        public final void setPortrait​(boolean value)

        Sets a value indicating whether the page orientation is portrait; returns false if the page orientation is landscape.

        Parameters:
        value - a value indicating whether the page orientation is portrait; returns false if the page orientation is landscape.