<PackageReference Include="System.Drawing.Common" Version="9.0.5" />

PaperSize

public class PaperSize
Specifies the size of a piece of paper.
public int Height { get; set; }

Gets or sets the height of the paper, in hundredths of an inch.

public PaperKind Kind { get; }

Gets the type of paper.

public string PaperName { get; set; }

Gets or sets the name of the type of paper.

public int RawKind { get; set; }

Gets or sets an integer representing one of the PaperSize values or a custom value.

public int Width { get; set; }

Gets or sets the width of the paper, in hundredths of an inch.

public PaperSize()

Initializes a new instance of the PaperSize class.

public PaperSize(string name, int width, int height)

Initializes a new instance of the PaperSize class.