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
Properties
A0
A0: 33.1 inches by 46.8 inches.
public static PaperFormat A0 { get; }
Property Value
A1
A1: 23.4 inches by 33.1 inches.
public static PaperFormat A1 { get; }
Property Value
A2
A2: 16.5 inches by 23.4 inches.
public static PaperFormat A2 { get; }
Property Value
A3
A3: 11.7 inches by 16.5 inches.
public static PaperFormat A3 { get; }
Property Value
A4
A4: 8.27 inches by 11.7 inches.
public static PaperFormat A4 { get; }
Property Value
A5
A5: 5.83 inches by 8.27 inches.
public static PaperFormat A5 { get; }
Property Value
A6
A6: 4.13 inches by 5.83 inches.
public static PaperFormat A6 { get; }
Property Value
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
Legal
Legal: 8.5 inches by 14 inches.
public static PaperFormat Legal { get; }
Property Value
Letter
Letter: 8.5 inches x 11 inches.
public static PaperFormat Letter { get; }
Property Value
Tabloid
Tabloid: 11 inches by 17 inches.
public static PaperFormat Tabloid { get; }
Property Value
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
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
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
PaperFormatthe value to compare against
right
.right
PaperFormatthe 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
PaperFormatthe value to compare against
right
.right
PaperFormatthe value to compare against
left
.
Returns
- bool
true
if the two instances are not equal to the same value.