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 thePageSettings
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getAdjustToPercentOfNormalSize()
Gets a value indicating whether to adjust printing to the specified percentage (PercentOfNormalSize
(getPercentOfNormalSize()
/setPercentOfNormalSize(int)
)) of normal size.short
getFirstPageNumber()
Gets a first page number for printing.int
getPagesInHeight()
Gets a number of pages in height to be printed.int
getPagesInWidth()
Gets a number of pages in width to be printed.int
getPaperSize()
Gets a paper size.int
getPaperSizeId()
Gets an integer representing one of the PrinterPaperSize values or a custom page size id.int
getPercentOfNormalSize()
Gets a percentage of normal size to adjust printing to.boolean
isPortrait()
Gets a value indicating whether the page orientation is portrait; returns false if the page orientation is landscape.void
setAdjustToPercentOfNormalSize(boolean value)
Sets a value indicating whether to adjust printing to the specified percentage (PercentOfNormalSize
(getPercentOfNormalSize()
/setPercentOfNormalSize(int)
)) of normal size.void
setFirstPageNumber(short value)
Sets a first page number for printing.void
setPagesInHeight(int value)
Sets a number of pages in height to be printed.void
setPagesInWidth(int value)
Sets a number of pages in width to be printed.void
setPaperSize(int value)
Sets a paper size.void
setPaperSizeId(int value)
Sets an integer representing one of the PrinterPaperSize values or a custom page size id.void
setPercentOfNormalSize(int value)
Sets a percentage of normal size to adjust printing to.void
setPortrait(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
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 (
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
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.
-
-