<PackageReference Include="System.Drawing.Common" Version="8.0.0-preview.5.23280.5" />

PrintController

public abstract class PrintController
Controls how a document is printed, when printing from a Windows Forms application.
public virtual bool IsPreview { get; }

Gets a value indicating whether the PrintController is used for print preview.

protected PrintController()

Initializes a new instance of the PrintController class.

public virtual void OnEndPage(PrintDocument document, PrintPageEventArgs e)

When overridden in a derived class, completes the control sequence that determines when and how to print a page of a document.

public virtual void OnEndPrint(PrintDocument document, PrintEventArgs e)

When overridden in a derived class, completes the control sequence that determines when and how to print a document.

When overridden in a derived class, begins the control sequence that determines when and how to print a page of a document.

public virtual void OnStartPrint(PrintDocument document, PrintEventArgs e)

When overridden in a derived class, begins the control sequence that determines when and how to print a document.