63 instantiations of PrinterSettings
PresentationCore.Tests (1)
BinaryFormat\DataObjectTests.cs (1)
55new System.Drawing.Printing.PrinterSettings(),
System.Drawing.Common.Tests (59)
System\Drawing\Printing\PrintDocumentTests.cs (1)
113PrinterSettings printerSettings = new();
System\Drawing\Printing\PrinterSettingsTests.cs (58)
38PrinterSettings printerSettings = new(); 45PrinterSettings printerSettings = new(); 52PrinterSettings printerSettings = new(); 61PrinterSettings printerSettings = new() 74PrinterSettings printerSettings = new(); 81PrinterSettings printerSettings = new(); 88PrinterSettings printerSettings = new() 99PrinterSettings printerSettings = new(); 109PrinterSettings printerSettings = new() 124PrinterSettings printerSettings = new(); 131PrinterSettings printerSettings = new(); 141PrinterSettings printerSettings = new() 154PrinterSettings printerSettings = new(); 167PrinterSettings printerSettings = new(); 174PrinterSettings printerSettings = new(); 181PrinterSettings printerSettings = new() 192PrinterSettings printerSettings = new(); 200PrinterSettings printerSettings = new(); 207PrinterSettings printerSettings = new(); 217PrinterSettings printerSettings = new() 230PrinterSettings printerSettings = new(); 237PrinterSettings printerSettings = new(); 246PrinterSettings printerSettings = new() 259PrinterSettings printerSettings = new(); 267PrinterSettings printerSettings = new() 278PrinterSettings printerSettings = new(); 285PrinterSettings printerSettings = new(); 292PrinterSettings printerSettings = new(); 299PrinterSettings printerSettings = new(); 310PrinterSettings printerSettings = new() 325PrinterSettings printerSettings = new(); 333PrinterSettings printerSettings = new() 346PrinterSettings printerSettings = new() 357PrinterSettings printerSettings = new() 368PrinterSettings printerSettings = new(); 382PrinterSettings printerSettings = new(); 402PrinterSettings printerSettings = new(); 410PrinterSettings printerSettings = new(); 419PrinterSettings printerSettings = new() { PrinterName = GetNameOfTestPrinterSuitableForDevModeTesting() }; 428PrinterSettings printerSettings = new() 441PrinterSettings printerSettings = new(); 448PrinterSettings printerSettings = new(); 456PrinterSettings printerSettings = new(); 468PrinterSettings printerSettings = new(); 478PrinterSettings printerSettings = new(); 491PrinterSettings printerSettings = new(); 502PrinterSettings printerSettings = new(); 510PrinterSettings printerSettings = new(); 520PrinterSettings printerSettings = new(); 531PrinterSettings printerSettings = new(); 538PrinterSettings printerSettings = new(); 549PrinterSettings printerSettings = new() { PrinterName = printerName, Copies = 3 }; 550PrinterSettings newPrinterSettings = new() { PrinterName = printerName, Copies = 6 }; 565PrinterSettings printerSettings = new() { PrinterName = candidate }; 586PrinterSettings printerSettings = new(); 593PrinterSettings printerSettings = new(); 594PrinterSettings newPrinterSettings = new(); 603PrinterSettings printerSettings = new();
System.Windows.Forms (2)
System\Windows\Forms\Printing\PrintDialog.cs (2)
79_printerSettings = _printDocument is null ? new PrinterSettings() : _printDocument.PrinterSettings; 98get => _printerSettings ??= new PrinterSettings();
System.Windows.Forms.Tests (1)
System\Windows\Forms\PageSetupDialogTests.cs (1)
305yield return new object[] { new PrinterSettings() };
85 references to PrinterSettings
System.Drawing (1)
System.Drawing.cs (1)
124[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Printing.PrinterSettings))]
System.Drawing.Common (8)
Special\NotSupported.cs (8)
2710public InvalidPrinterException(System.Drawing.Printing.PrinterSettings settings) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 2746public PageSettings(System.Drawing.Printing.PrinterSettings printerSettings) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 2757public System.Drawing.Printing.PrinterSettings PrinterSettings { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 2977public System.Drawing.Printing.PrinterSettings PrinterSettings { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 3017public static System.Drawing.Printing.PrinterSettings.StringCollection InstalledPrinters { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 3025public System.Drawing.Printing.PrinterSettings.PaperSizeCollection PaperSizes { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 3026public System.Drawing.Printing.PrinterSettings.PaperSourceCollection PaperSources { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 3028public System.Drawing.Printing.PrinterSettings.PrinterResolutionCollection PrinterResolutions { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
System.Drawing.Common.Tests (64)
Helpers.cs (2)
16public static PrinterSettings.StringCollection InstalledPrinters { get; } = PrinterSettings.InstalledPrinters;
System\Drawing\Printing\PrintDocumentTests.cs (2)
111Assert.IsAssignableFrom<PrinterSettings>(document.PrinterSettings); 113PrinterSettings printerSettings = new();
System\Drawing\Printing\PrinterSettingsTests.cs (60)
38PrinterSettings printerSettings = new(); 45PrinterSettings printerSettings = new(); 52PrinterSettings printerSettings = new(); 61PrinterSettings printerSettings = new() 74PrinterSettings printerSettings = new(); 81PrinterSettings printerSettings = new(); 88PrinterSettings printerSettings = new() 99PrinterSettings printerSettings = new(); 109PrinterSettings printerSettings = new() 124PrinterSettings printerSettings = new(); 131PrinterSettings printerSettings = new(); 141PrinterSettings printerSettings = new() 154PrinterSettings printerSettings = new(); 167PrinterSettings printerSettings = new(); 174PrinterSettings printerSettings = new(); 181PrinterSettings printerSettings = new() 192PrinterSettings printerSettings = new(); 200PrinterSettings printerSettings = new(); 207PrinterSettings printerSettings = new(); 217PrinterSettings printerSettings = new() 230PrinterSettings printerSettings = new(); 237PrinterSettings printerSettings = new(); 246PrinterSettings printerSettings = new() 259PrinterSettings printerSettings = new(); 267PrinterSettings printerSettings = new() 278PrinterSettings printerSettings = new(); 285PrinterSettings printerSettings = new(); 292PrinterSettings printerSettings = new(); 299PrinterSettings printerSettings = new(); 310PrinterSettings printerSettings = new() 325PrinterSettings printerSettings = new(); 333PrinterSettings printerSettings = new() 346PrinterSettings printerSettings = new() 357PrinterSettings printerSettings = new() 368PrinterSettings printerSettings = new(); 382PrinterSettings printerSettings = new(); 402PrinterSettings printerSettings = new(); 410PrinterSettings printerSettings = new(); 419PrinterSettings printerSettings = new() { PrinterName = GetNameOfTestPrinterSuitableForDevModeTesting() }; 428PrinterSettings printerSettings = new() 441PrinterSettings printerSettings = new(); 448PrinterSettings printerSettings = new(); 449PrinterSettings clone = Assert.IsAssignableFrom<PrinterSettings>(printerSettings.Clone()); 456PrinterSettings printerSettings = new(); 468PrinterSettings printerSettings = new(); 478PrinterSettings printerSettings = new(); 491PrinterSettings printerSettings = new(); 502PrinterSettings printerSettings = new(); 510PrinterSettings printerSettings = new(); 520PrinterSettings printerSettings = new(); 531PrinterSettings printerSettings = new(); 538PrinterSettings printerSettings = new(); 549PrinterSettings printerSettings = new() { PrinterName = printerName, Copies = 3 }; 550PrinterSettings newPrinterSettings = new() { PrinterName = printerName, Copies = 6 }; 565PrinterSettings printerSettings = new() { PrinterName = candidate }; 586PrinterSettings printerSettings = new(); 593PrinterSettings printerSettings = new(); 594PrinterSettings newPrinterSettings = new(); 603PrinterSettings printerSettings = new();
System.Windows.Forms (10)
System\Windows\Forms\Printing\PageSetupDialog.cs (4)
22private PrinterSettings? _printerSettings; 133public PrinterSettings? PrinterSettings 240PrinterSettings? printerSettings) 327PrinterSettings printer = _printerSettings ?? _pageSettings.PrinterSettings;
System\Windows\Forms\Printing\PrintDialog.cs (5)
27private PrinterSettings? _printerSettings; 68/// <see cref="Drawing.Printing.PrinterSettings"/>. 88/// Gets or sets the <see cref="Drawing.Printing.PrinterSettings"/> the dialog box will be modifying. 96public PrinterSettings PrinterSettings 471PrinterSettings settings,
System\Windows\Forms\Printing\PrinterSettingsExtensions.cs (1)
20internal static unsafe DevModeScope GetDevMode(PrinterSettings printerSettings)
System.Windows.Forms.Tests (2)
System\Windows\Forms\PageSetupDialogTests.cs (2)
310public void PageSetupDialog_PrinterSettings_Set_GetReturnsExpected(PrinterSettings value) 327public void PageSetupDialog_PrinterSettings_SetWithDocument_GetReturnsExpected(PrinterSettings value)