public class PrintPaperSize extends Object
Constructor and Description |
---|
PrintPaperSize()
Initializes a new instance of the PaperSize class.
|
PrintPaperSize(String name,
int width,
int height)
Initializes a new instance of the PaperSize class.
|
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Gets or sets the height of the paper, in hundredths of an inch.
|
int |
getKind()
Gets the type of paper.
|
String |
getPaperName()
Gets or sets the name of the type of paper.
|
int |
getRawKind()
Gets or sets an integer representing one of the PaperSize values or a custom value.
|
int |
getWidth()
Gets or sets the width of the paper, in hundredths of an inch.
|
void |
setHeight(int value)
Gets or sets the height of the paper, in hundredths of an inch.
|
void |
setPaperName(String value)
Gets the name of the type of paper.
|
void |
setWidth(int value)
Sets the width of the paper, in hundredths of an inch.
|
String |
toString()
Gets the name of this instance.
|
public PrintPaperSize()
public PrintPaperSize(String name, int width, int height)
name
- String valuewidth
- int valueheight
- int valuepublic int getHeight()
public int getKind()
PrinterPaperKind
public String getPaperName()
public int getRawKind()
public int getWidth()
public void setHeight(int value)
value
- int valuepublic void setPaperName(String value)
value
- String valuepublic void setWidth(int value)
value
- int value