Table of Contents

Class PageSize

Namespace
NAPS2.Images
Assembly
NAPS2.Sdk.dll

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 decimal
height decimal
unit PageSizeUnit

PageSize(string, string, PageSizeUnit)

public PageSize(string width, string height, PageSizeUnit unit)

Parameters

width string
height string
unit PageSizeUnit

Fields

A3

public static PageSize A3

Field Value

PageSize

A4

public static PageSize A4

Field Value

PageSize

A5

public static PageSize A5

Field Value

PageSize

B4

public static PageSize B4

Field Value

PageSize

B5

public static PageSize B5

Field Value

PageSize
public static PageSize Legal

Field Value

PageSize

Letter

public static PageSize Letter

Field Value

PageSize

Properties

Height

public decimal Height { get; protected set; }

Property Value

decimal

HeightInInches

public decimal HeightInInches { get; }

Property Value

decimal

HeightInMm

public decimal HeightInMm { get; }

Property Value

decimal

HeightInThousandthsOfAnInch

public int HeightInThousandthsOfAnInch { get; }

Property Value

int

Unit

public PageSizeUnit Unit { get; protected set; }

Property Value

PageSizeUnit

Width

public decimal Width { get; protected set; }

Property Value

decimal

WidthInInches

public decimal WidthInInches { get; }

Property Value

decimal

WidthInMm

public decimal WidthInMm { get; }

Property Value

decimal

WidthInThousandthsOfAnInch

public int WidthInThousandthsOfAnInch { get; }

Property Value

int

Methods

Parse(string?)

public static PageSize? Parse(string? size)

Parameters

size string

Returns

PageSize

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.