PrintPaperSize

Inheritance: java.lang.Object

public class PrintPaperSize

Specifies the size of a piece of paper.

Constructors

ConstructorDescription
PrintPaperSize()Initializes a new instance of the PaperSize class.
PrintPaperSize(String name, int width, int height)Initializes a new instance of the PaperSize class.
PrintPaperSize(int kind, String name, int width, int height)Initializes a new instance of the PaperSize class.

Methods

MethodDescription
getHeight()Gets or sets the height of the paper, in hundredths of an inch.
getKind()Gets the type of paper.
getPaperName()Gets or sets the name of the type of paper.
getRawKind()Gets or sets an integer representing one of the PaperSize values or a custom value.
getWidth()Gets or sets the width of the paper, in hundredths of an inch.
setHeight(int value)Gets or sets the height of the paper, in hundredths of an inch.
setPaperName(String value)Gets the name of the type of paper.
setWidth(int value)Sets the width of the paper, in hundredths of an inch.
toString()Gets the name of this instance.

PrintPaperSize()

public PrintPaperSize()

Initializes a new instance of the PaperSize class.

PrintPaperSize(String name, int width, int height)

public PrintPaperSize(String name, int width, int height)

Initializes a new instance of the PaperSize class.

Parameters:

ParameterTypeDescription
namejava.lang.StringString value
widthintint value
heightintint value

PrintPaperSize(int kind, String name, int width, int height)

public PrintPaperSize(int kind, String name, int width, int height)

Initializes a new instance of the PaperSize class.

Parameters:

ParameterTypeDescription
kindintThe kind of the paper.
namejava.lang.StringString value
widthintint value
heightintint value

getHeight()

public int getHeight()

Gets or sets the height of the paper, in hundredths of an inch.

Returns: int - int value

getKind()

public int getKind()

Gets the type of paper.

Returns: int - int value

getPaperName()

public String getPaperName()

Gets or sets the name of the type of paper.

Returns: java.lang.String - String value

getRawKind()

public int getRawKind()

Gets or sets an integer representing one of the PaperSize values or a custom value.

Returns: int - int value

getWidth()

public int getWidth()

Gets or sets the width of the paper, in hundredths of an inch.

Returns: int - int value

setHeight(int value)

public void setHeight(int value)

Gets or sets the height of the paper, in hundredths of an inch.

Parameters:

ParameterTypeDescription
valueintint value

setPaperName(String value)

public void setPaperName(String value)

Gets the name of the type of paper.

Parameters:

ParameterTypeDescription
valuejava.lang.StringString value

setWidth(int value)

public void setWidth(int value)

Sets the width of the paper, in hundredths of an inch.

Parameters:

ParameterTypeDescription
valueintint value

toString()

public String toString()

Gets the name of this instance.

Returns: java.lang.String - String value