Class PageSize
java.lang.Object
com.independentsoft.office.word.sections.PageSize
The Class PageSize.
-
Constructor Summary
ConstructorsConstructorDescriptionPageSize()Instantiates a new page size.PageSize(int width, int height)Instantiates a new page size.PageSize(int width, int height, PageOrientation orientation)Instantiates a new page size.PageSize(int width, int height, PageOrientation orientation, int printerPaperCode)Instantiates a new page size. -
Method Summary
Modifier and TypeMethodDescriptionclone()intGets the height.Gets the page orientation.intGets the printer paper code.intgetWidth()Gets the width.voidsetHeight(int height)Sets the height.voidsetPageOrientation(PageOrientation orientation)Sets the page orientation.voidsetPrinterPaperCode(int printerPaperCode)Sets the printer paper code.voidsetWidth(int width)Sets the width.toString()
-
Constructor Details
-
PageSize
public PageSize()Instantiates a new page size. -
PageSize
public PageSize(int width, int height)Instantiates a new page size.- Parameters:
width- the widthheight- the height
-
PageSize
Instantiates a new page size.- Parameters:
width- the widthheight- the heightorientation- the orientation
-
PageSize
Instantiates a new page size.- Parameters:
width- the widthheight- the heightorientation- the orientationprinterPaperCode- the printer paper code
-
-
Method Details
-
clone
-
toString
-
getPrinterPaperCode
public int getPrinterPaperCode()Gets the printer paper code.- Returns:
- the printer paper code
-
setPrinterPaperCode
public void setPrinterPaperCode(int printerPaperCode)Sets the printer paper code.- Parameters:
printerPaperCode- the new printer paper code
-
getHeight
public int getHeight()Gets the height.- Returns:
- the height
-
setHeight
public void setHeight(int height)Sets the height.- Parameters:
height- the new height
-
getWidth
public int getWidth()Gets the width.- Returns:
- the width
-
setWidth
public void setWidth(int width)Sets the width.- Parameters:
width- the new width
-
getPageOrientation
Gets the page orientation.- Returns:
- the page orientation
-
setPageOrientation
Sets the page orientation.- Parameters:
orientation- the new page orientation
-