Table of Contents

Class PaperFormat

Namespace
PuppeteerSharp.Media
Assembly
PuppeteerSharp.dll

Paper format.

public class PaperFormat : IEquatable<PaperFormat>
Inheritance
PaperFormat
Implements

Constructors

PaperFormat(decimal, decimal)

Initializes a new instance of the PaperFormat class. Page width and height in inches.

public PaperFormat(decimal width, decimal height)

Parameters

width decimal

Page width in inches.

height decimal

Page height in inches.

Properties

A0

A0: 33.1 inches by 46.8 inches.

public static PaperFormat A0 { get; }

Property Value

PaperFormat

A1

A1: 23.4 inches by 33.1 inches.

public static PaperFormat A1 { get; }

Property Value

PaperFormat

A2

A2: 16.5 inches by 23.4 inches.

public static PaperFormat A2 { get; }

Property Value

PaperFormat

A3

A3: 11.7 inches by 16.5 inches.

public static PaperFormat A3 { get; }

Property Value

PaperFormat

A4

A4: 8.27 inches by 11.7 inches.

public static PaperFormat A4 { get; }

Property Value

PaperFormat

A5

A5: 5.83 inches by 8.27 inches.

public static PaperFormat A5 { get; }

Property Value

PaperFormat

A6

A6: 4.13 inches by 5.83 inches.

public static PaperFormat A6 { get; }

Property Value

PaperFormat

Height

Page height in inches.

public decimal Height { get; set; }

Property Value

decimal

The Height.

Ledger

Ledger: 17 inches by 11 inches.

public static PaperFormat Ledger { get; }

Property Value

PaperFormat

Legal: 8.5 inches by 14 inches.

public static PaperFormat Legal { get; }

Property Value

PaperFormat

Letter

Letter: 8.5 inches x 11 inches.

public static PaperFormat Letter { get; }

Property Value

PaperFormat

Tabloid

Tabloid: 11 inches by 17 inches.

public static PaperFormat Tabloid { get; }

Property Value

PaperFormat

Width

Page width in inches.

public decimal Width { get; set; }

Property Value

decimal

The width.

Methods

Equals(PaperFormat)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(PaperFormat format)

Parameters

format PaperFormat

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Operators

operator ==(PaperFormat, PaperFormat)

Overriding == operator for PaperFormat.

public static bool operator ==(PaperFormat left, PaperFormat right)

Parameters

left PaperFormat

the value to compare against right.

right PaperFormat

the value to compare against left.

Returns

bool

true if the two instances are equal to the same value.

operator !=(PaperFormat, PaperFormat)

Overriding != operator for PaperFormat.

public static bool operator !=(PaperFormat left, PaperFormat right)

Parameters

left PaperFormat

the value to compare against right.

right PaperFormat

the value to compare against left.

Returns

bool

true if the two instances are not equal to the same value.

See Also