Table of Contents

Class PrintOptions.PageSize

Namespace
OpenQA.Selenium
Assembly
WebDriver.dll

An object representing the page size of the print options.

public class PrintOptions.PageSize
Inheritance
PrintOptions.PageSize
Inherited Members

Properties

A4

Represents the A4 paper size. Width: 21.0 cm, Height: 29.7 cm

public static PrintOptions.PageSize A4 { get; }

Property Value

PrintOptions.PageSize

Height

Gets or sets the height of each page in centimeters.

public double Height { get; set; }

Property Value

double

Exceptions

ArgumentOutOfRangeException

If the value is set to a negative value.

HeightInInches

Gets or sets the height of each page in inches.

public double HeightInInches { get; set; }

Property Value

double

Exceptions

ArgumentOutOfRangeException

If the value is set to a negative value.

Represents the Legal paper size. Width: 21.59 cm, Height: 35.56 cm

public static PrintOptions.PageSize Legal { get; }

Property Value

PrintOptions.PageSize

Letter

Represents the Letter paper size. Width: 21.59 cm, Height: 27.94 cm

public static PrintOptions.PageSize Letter { get; }

Property Value

PrintOptions.PageSize

Tabloid

Represents the Tabloid paper size. Width: 27.94 cm, Height: 43.18 cm

public static PrintOptions.PageSize Tabloid { get; }

Property Value

PrintOptions.PageSize

Width

Gets or sets the width of each page in centimeters.

public double Width { get; set; }

Property Value

double

Exceptions

ArgumentOutOfRangeException

If the value is set to a negative value.

WidthInInches

Gets or sets the width of each page in inches.

public double WidthInInches { get; set; }

Property Value

double

Exceptions

ArgumentOutOfRangeException

If the value is set to a negative value.