<PackageReference Include="System.Drawing.Common" Version="10.0.0-rc.1.25451.107" />

PageSettings

public class PageSettings : ICloneable
Specifies settings that apply to a single, printed page.
public Rectangle Bounds { get; }

Gets the size of the page, taking into account the page orientation specified by the Landscape property.

public bool Color { get; set; }

Gets or sets a value indicating whether the page should be printed in color.

public float HardMarginX { get; }

Gets the x-coordinate, in hundredths of an inch, of the hard margin at the left of the page.

public float HardMarginY { get; }

Gets the y-coordinate, in hundredths of an inch, of the hard margin at the top of the page.

public bool Landscape { get; set; }

Gets or sets a value indicating whether the page is printed in landscape or portrait orientation.

public Margins Margins { get; set; }

Gets or sets the margins for this page.

public PaperSize PaperSize { get; set; }

Gets or sets the paper size for the page.

public PaperSource PaperSource { get; set; }

Gets or sets the page's paper source; for example, the printer's upper tray.

public RectangleF PrintableArea { get; }

Gets the bounds of the printable area of the page for the printer.

public PrinterResolution PrinterResolution { get; set; }

Gets or sets the printer resolution for the page.

public PrinterSettings PrinterSettings { get; set; }

Gets or sets the printer settings associated with the page.

public PageSettings()

Initializes a new instance of the PageSettings class using the default printer.

public PageSettings(PrinterSettings printerSettings)

Initializes a new instance of the PageSettings class using a specified printer.

public object Clone()

Creates a copy of this PageSettings.

public void CopyToHdevmode(IntPtr hdevmode)

Copies the relevant information from the PageSettings to the specified DEVMODE structure.

public void SetHdevmode(IntPtr hdevmode)

Copies relevant information to the PageSettings from the specified DEVMODE structure.