แก้ไข

แชร์ผ่าน


PageMediaSize Constructors

Definition

Initializes a new instance of the PageMediaSize class.

Overloads

PageMediaSize(PageMediaSizeName)

Initializes a new instance of the PageMediaSize class by using the specified PageMediaSizeName.

PageMediaSize(Double, Double)

Initializes a new instance of the PageMediaSize class by using the width and height.

PageMediaSize(PageMediaSizeName, Double, Double)

Initializes a new instance of the PageMediaSize class by using the specified PageMediaSizeName and the width and height.

PageMediaSize(PageMediaSizeName)

Initializes a new instance of the PageMediaSize class by using the specified PageMediaSizeName.

public:
 PageMediaSize(System::Printing::PageMediaSizeName mediaSizeName);
public PageMediaSize (System.Printing.PageMediaSizeName mediaSizeName);
new System.Printing.PageMediaSize : System.Printing.PageMediaSizeName -> System.Printing.PageMediaSize
Public Sub New (mediaSizeName As PageMediaSizeName)

Parameters

mediaSizeName
PageMediaSizeName

The name of the page size for paper (or other media), for example, NorthAmericaLetter or ISOA4.

Applies to

PageMediaSize(Double, Double)

Initializes a new instance of the PageMediaSize class by using the width and height.

public:
 PageMediaSize(double width, double height);
public PageMediaSize (double width, double height);
new System.Printing.PageMediaSize : double * double -> System.Printing.PageMediaSize
Public Sub New (width As Double, height As Double)

Parameters

width
Double

The width, in pixels, which are 1/96 inch units.

height
Double

The height, in pixels, which are 1/96 inch units.

Applies to

PageMediaSize(PageMediaSizeName, Double, Double)

Initializes a new instance of the PageMediaSize class by using the specified PageMediaSizeName and the width and height.

public:
 PageMediaSize(System::Printing::PageMediaSizeName mediaSizeName, double width, double height);
public PageMediaSize (System.Printing.PageMediaSizeName mediaSizeName, double width, double height);
new System.Printing.PageMediaSize : System.Printing.PageMediaSizeName * double * double -> System.Printing.PageMediaSize
Public Sub New (mediaSizeName As PageMediaSizeName, width As Double, height As Double)

Parameters

mediaSizeName
PageMediaSizeName

The name of the page size for paper (or other media), for example, NorthAmericaLetter or ISOA4.

width
Double

The width, in pixels, which are 1/96 inch units.

height
Double

The height, in pixels, which are 1/96 inch units.

Applies to