<PackageReference Include="System.Drawing.Common" Version="9.0.0-rc.2.24474.1" />

PrintController

public abstract class PrintController
Controls how a document is printed, when printing from a Windows Forms application.
using System.Runtime.CompilerServices; namespace System.Drawing.Printing { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] public abstract class PrintController { public virtual bool IsPreview { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } protected PrintController() { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public virtual void OnEndPage(PrintDocument document, PrintPageEventArgs e) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public virtual void OnEndPrint(PrintDocument document, PrintEventArgs e) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } [return: System.Runtime.CompilerServices.Nullable(2)] public virtual Graphics OnStartPage(PrintDocument document, PrintPageEventArgs e) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public virtual void OnStartPrint(PrintDocument document, PrintEventArgs e) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } }