Class PageSettings
- java.lang.Object
-
- com.aspose.tasks.PageSettings
-
public class PageSettings extends Object
Represents printing settings for a page of project view.
-
-
Constructor Summary
Constructors Constructor Description PageSettings()Initializes a new instance of thePageSettingsclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetAdjustToPercentOfNormalSize()Gets a value indicating whether to adjust printing to the specified percentage (PercentOfNormalSize(getPercentOfNormalSize()/setPercentOfNormalSize(int))) of normal size.shortgetFirstPageNumber()Gets a first page number for printing.intgetPagesInHeight()Gets a number of pages in height to be printed.intgetPagesInWidth()Gets a number of pages in width to be printed.intgetPaperSize()Gets a paper size.intgetPaperSizeId()Gets an integer representing one of the PrinterPaperSize values or a custom page size id.intgetPercentOfNormalSize()Gets a percentage of normal size to adjust printing to.booleanisPortrait()Gets a value indicating whether the page orientation is portrait; returns false if the page orientation is landscape.voidsetAdjustToPercentOfNormalSize(boolean value)Sets a value indicating whether to adjust printing to the specified percentage (PercentOfNormalSize(getPercentOfNormalSize()/setPercentOfNormalSize(int))) of normal size.voidsetFirstPageNumber(short value)Sets a first page number for printing.voidsetPagesInHeight(int value)Sets a number of pages in height to be printed.voidsetPagesInWidth(int value)Sets a number of pages in width to be printed.voidsetPaperSize(int value)Sets a paper size.voidsetPaperSizeId(int value)Sets an integer representing one of the PrinterPaperSize values or a custom page size id.voidsetPercentOfNormalSize(int value)Sets a percentage of normal size to adjust printing to.voidsetPortrait(boolean value)Sets a value indicating whether the page orientation is portrait; returns false if the page orientation is landscape.
-
-
-
Constructor Detail
-
PageSettings
public PageSettings()
Initializes a new instance of the
PageSettingsclass. 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 (
PercentOfNormalSize(getPercentOfNormalSize()/setPercentOfNormalSize(int))) of normal size.
Is not effective when project is rendered in HTML format.- Returns:
- a value indicating whether to adjust printing to the specified percentage (
PercentOfNormalSize(getPercentOfNormalSize()/setPercentOfNormalSize(int))) of normal size.
-
setAdjustToPercentOfNormalSize
public final void setAdjustToPercentOfNormalSize(boolean value)
Sets a value indicating whether to adjust printing to the specified percentage (
PercentOfNormalSize(getPercentOfNormalSize()/setPercentOfNormalSize(int))) of normal size.
Is not effective when project is rendered in HTML format.- Parameters:
value- a value indicating whether to adjust printing to the specified percentage (PercentOfNormalSize(getPercentOfNormalSize()/setPercentOfNormalSize(int))) 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
PrinterPaperSizeenumeration.- Returns:
- a paper size.
-
setPaperSize
public final void setPaperSize(int value)
Sets a paper size. Can be one of the values of the
PrinterPaperSizeenumeration.- 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.
-
-