67 instantiations of PrinterSettings
PresentationCore.Tests (1)
BinaryFormat\DataObjectTests.cs (1)
62new System.Drawing.Printing.PrinterSettings(),
System.Drawing.Common (4)
System\Drawing\Printing\PageSettings.cs (2)
22public PageSettings() : this(new PrinterSettings()) 208set => _printerSettings = value ?? new PrinterSettings();
System\Drawing\Printing\PrintDocument.cs (2)
21private PrinterSettings _printerSettings = new(); 98value ??= new 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() };
89 references to PrinterSettings
System.Drawing (1)
System.Drawing.cs (1)
124[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Printing.PrinterSettings))]
System.Drawing.Common (12)
System\Drawing\Printing\InvalidPrinterException.cs (2)
17public InvalidPrinterException(PrinterSettings settings) : base(GenerateMessage(settings)) 21private static string GenerateMessage(PrinterSettings settings)
System\Drawing\Printing\PageSettings.cs (3)
11private PrinterSettings _printerSettings; 29public PageSettings(PrinterSettings printerSettings) 205public PrinterSettings PrinterSettings
System\Drawing\Printing\PrintDocument.cs (2)
21private PrinterSettings _printerSettings = new(); 93public PrinterSettings PrinterSettings
System\Drawing\Printing\PrinterSettings.cs (3)
37/// Initializes a new instance of the <see cref='PrinterSettings'/> class. 435PrinterSettings clone = (PrinterSettings)MemberwiseClone();
System\Drawing\Printing\PrintRange.cs (2)
19/// The pages between <see cref='PrinterSettings.FromPage'/> and <see cref='PrinterSettings.ToPage'/> are printed.
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)