Class PageSize
Represents a page size, e.g. US Letter (8.5 x 11 in) or A4 (210 x 297 mm).
public record PageSize : IEquatable<PageSize>
- Inheritance
-
PageSize
- Implements
- Inherited Members
Constructors
PageSize()
protected PageSize()
PageSize(decimal, decimal, PageSizeUnit)
public PageSize(decimal width, decimal height, PageSizeUnit unit)
Parameters
width
decimalheight
decimalunit
PageSizeUnit
PageSize(string, string, PageSizeUnit)
public PageSize(string width, string height, PageSizeUnit unit)
Parameters
width
stringheight
stringunit
PageSizeUnit
Fields
A3
public static PageSize A3
Field Value
A4
public static PageSize A4
Field Value
A5
public static PageSize A5
Field Value
B4
public static PageSize B4
Field Value
B5
public static PageSize B5
Field Value
Legal
public static PageSize Legal
Field Value
Letter
public static PageSize Letter
Field Value
Properties
Height
public decimal Height { get; protected set; }
Property Value
HeightInInches
public decimal HeightInInches { get; }
Property Value
HeightInMm
public decimal HeightInMm { get; }
Property Value
HeightInThousandthsOfAnInch
public int HeightInThousandthsOfAnInch { get; }
Property Value
Unit
public PageSizeUnit Unit { get; protected set; }
Property Value
Width
public decimal Width { get; protected set; }
Property Value
WidthInInches
public decimal WidthInInches { get; }
Property Value
WidthInMm
public decimal WidthInMm { get; }
Property Value
WidthInThousandthsOfAnInch
public int WidthInThousandthsOfAnInch { get; }
Property Value
Methods
Parse(string?)
public static PageSize? Parse(string? size)
Parameters
size
string
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.