public class PageSettings extends Object
Represents printing settings for a page of project view.
Constructor and Description |
---|
PageSettings()
Initializes a new instance of the
PageSettings class. |
Modifier and Type | Method and Description |
---|---|
boolean |
getAdjustToPercentOfNormalSize()
Gets a value indicating whether to adjust printing to the specified percentage 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 |
getPercentOfNormalSize()
Gets a 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 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 |
setPercentOfNormalSize(int value)
Sets a 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.
|
public PageSettings()
Initializes a new instance of the PageSettings
class.
Represents printing settings for a page of project view.
public final boolean getAdjustToPercentOfNormalSize()
Gets a value indicating whether to adjust printing to the specified percentage of normal size.
public final void setAdjustToPercentOfNormalSize(boolean value)
Sets a value indicating whether to adjust printing to the specified percentage of normal size.
value
- a value indicating whether to adjust printing to the specified percentage of normal size.public final short getFirstPageNumber()
Gets a first page number for printing.
public final void setFirstPageNumber(short value)
Sets a first page number for printing.
value
- a first page number for printing.public final int getPagesInHeight()
Gets a number of pages in height to be printed.
public final void setPagesInHeight(int value)
Sets a number of pages in height to be printed.
value
- a number of pages in height to be printed.public final int getPagesInWidth()
Gets a number of pages in width to be printed.
public final void setPagesInWidth(int value)
Sets a number of pages in width to be printed.
value
- a number of pages in width to be printed.public final int getPaperSize()
Gets a paper size. Can be one of the values of the PrinterPaperSize
enumeration.
public final void setPaperSize(int value)
Sets a paper size. Can be one of the values of the PrinterPaperSize
enumeration.
value
- a paper size.public final int getPercentOfNormalSize()
Gets a a percentage of normal size to adjust printing to.
public final void setPercentOfNormalSize(int value)
Sets a a percentage of normal size to adjust printing to.
value
- a a percentage of normal size to adjust printing to.public final boolean isPortrait()
Gets a value indicating whether the page orientation is portrait; returns false if the page orientation is landscape.
public final void setPortrait(boolean value)
Sets a value indicating whether the page orientation is portrait; returns false if the page orientation is landscape.
value
- a value indicating whether the page orientation is portrait; returns false if the page
orientation is landscape.