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

PrinterSettings

public class PrinterSettings : ICloneable
Specifies information about how a document is printed, including the printer that prints it, when printing from a Windows Forms application.
using System.Collections; using System.ComponentModel; using System.Drawing.Imaging; using System.Runtime.CompilerServices; namespace System.Drawing.Printing { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] public class PrinterSettings : ICloneable { [System.Runtime.CompilerServices.Nullable(0)] public class PaperSizeCollection : ICollection, IEnumerable { public int Count { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public virtual PaperSize this[int index] { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } int ICollection.Count { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } bool ICollection.IsSynchronized { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } object ICollection.SyncRoot { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public PaperSizeCollection(PaperSize[] array) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } [EditorBrowsable(EditorBrowsableState.Never)] public int Add(PaperSize paperSize) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public void CopyTo(PaperSize[] paperSizes, int index) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public IEnumerator GetEnumerator() { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } void ICollection.CopyTo(Array array, int index) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } IEnumerator IEnumerable.GetEnumerator() { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } [System.Runtime.CompilerServices.Nullable(0)] public class PaperSourceCollection : ICollection, IEnumerable { public int Count { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public virtual PaperSource this[int index] { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } int ICollection.Count { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } bool ICollection.IsSynchronized { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } object ICollection.SyncRoot { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public PaperSourceCollection(PaperSource[] array) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } [EditorBrowsable(EditorBrowsableState.Never)] public int Add(PaperSource paperSource) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public void CopyTo(PaperSource[] paperSources, int index) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public IEnumerator GetEnumerator() { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } void ICollection.CopyTo(Array array, int index) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } IEnumerator IEnumerable.GetEnumerator() { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } [System.Runtime.CompilerServices.Nullable(0)] public class PrinterResolutionCollection : ICollection, IEnumerable { public int Count { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public virtual PrinterResolution this[int index] { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } int ICollection.Count { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } bool ICollection.IsSynchronized { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } object ICollection.SyncRoot { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public PrinterResolutionCollection(PrinterResolution[] array) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } [EditorBrowsable(EditorBrowsableState.Never)] public int Add(PrinterResolution printerResolution) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public void CopyTo(PrinterResolution[] printerResolutions, int index) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public IEnumerator GetEnumerator() { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } void ICollection.CopyTo(Array array, int index) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } IEnumerator IEnumerable.GetEnumerator() { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } [System.Runtime.CompilerServices.Nullable(0)] public class StringCollection : ICollection, IEnumerable { public int Count { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public virtual string this[int index] { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } int ICollection.Count { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } bool ICollection.IsSynchronized { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } object ICollection.SyncRoot { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public StringCollection(string[] array) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } [EditorBrowsable(EditorBrowsableState.Never)] public int Add(string value) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public void CopyTo(string[] strings, int index) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public IEnumerator GetEnumerator() { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } void ICollection.CopyTo(Array array, int index) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } IEnumerator IEnumerable.GetEnumerator() { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public bool CanDuplex { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public bool Collate { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public short Copies { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public PageSettings DefaultPageSettings { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public Duplex Duplex { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public int FromPage { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public static StringCollection InstalledPrinters { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public bool IsDefaultPrinter { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public bool IsPlotter { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public bool IsValid { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public int LandscapeAngle { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public int MaximumCopies { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public int MaximumPage { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public int MinimumPage { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public PaperSizeCollection PaperSizes { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public PaperSourceCollection PaperSources { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public string PrinterName { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public PrinterResolutionCollection PrinterResolutions { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public string PrintFileName { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public PrintRange PrintRange { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public bool PrintToFile { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public bool SupportsColor { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public int ToPage { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public PrinterSettings() { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public object Clone() { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public Graphics CreateMeasurementGraphics() { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public Graphics CreateMeasurementGraphics(bool honorOriginAtMargins) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public Graphics CreateMeasurementGraphics(PageSettings pageSettings) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public Graphics CreateMeasurementGraphics(PageSettings pageSettings, bool honorOriginAtMargins) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public IntPtr GetHdevmode() { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public IntPtr GetHdevmode(PageSettings pageSettings) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public IntPtr GetHdevnames() { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public bool IsDirectPrintingSupported(Image image) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public bool IsDirectPrintingSupported(ImageFormat imageFormat) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public void SetHdevmode(IntPtr hdevmode) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public void SetHdevnames(IntPtr hdevnames) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public override string ToString() { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } }