67 instantiations of PrinterSettings
PresentationCore.Tests (1)
BinaryFormat\DataObjectTests.cs (1)
62
new System.Drawing.Printing.
PrinterSettings
(),
System.Drawing.Common (4)
System\Drawing\Printing\PageSettings.cs (2)
22
public PageSettings() : this(new
PrinterSettings
())
208
set => _printerSettings = value ?? new
PrinterSettings
();
System\Drawing\Printing\PrintDocument.cs (2)
21
private PrinterSettings _printerSettings =
new
();
98
value ??= new
PrinterSettings
();
System.Drawing.Common.Tests (59)
System\Drawing\Printing\PrintDocumentTests.cs (1)
113
PrinterSettings printerSettings =
new
();
System\Drawing\Printing\PrinterSettingsTests.cs (58)
38
PrinterSettings printerSettings =
new
();
45
PrinterSettings printerSettings =
new
();
52
PrinterSettings printerSettings =
new
();
61
PrinterSettings printerSettings =
new
()
74
PrinterSettings printerSettings =
new
();
81
PrinterSettings printerSettings =
new
();
88
PrinterSettings printerSettings =
new
()
99
PrinterSettings printerSettings =
new
();
109
PrinterSettings printerSettings =
new
()
124
PrinterSettings printerSettings =
new
();
131
PrinterSettings printerSettings =
new
();
141
PrinterSettings printerSettings =
new
()
154
PrinterSettings printerSettings =
new
();
167
PrinterSettings printerSettings =
new
();
174
PrinterSettings printerSettings =
new
();
181
PrinterSettings printerSettings =
new
()
192
PrinterSettings printerSettings =
new
();
200
PrinterSettings printerSettings =
new
();
207
PrinterSettings printerSettings =
new
();
217
PrinterSettings printerSettings =
new
()
230
PrinterSettings printerSettings =
new
();
237
PrinterSettings printerSettings =
new
();
246
PrinterSettings printerSettings =
new
()
259
PrinterSettings printerSettings =
new
();
267
PrinterSettings printerSettings =
new
()
278
PrinterSettings printerSettings =
new
();
285
PrinterSettings printerSettings =
new
();
292
PrinterSettings printerSettings =
new
();
299
PrinterSettings printerSettings =
new
();
310
PrinterSettings printerSettings =
new
()
325
PrinterSettings printerSettings =
new
();
333
PrinterSettings printerSettings =
new
()
346
PrinterSettings printerSettings =
new
()
357
PrinterSettings printerSettings =
new
()
368
PrinterSettings printerSettings =
new
();
382
PrinterSettings printerSettings =
new
();
402
PrinterSettings printerSettings =
new
();
410
PrinterSettings printerSettings =
new
();
419
PrinterSettings printerSettings =
new
() { PrinterName = GetNameOfTestPrinterSuitableForDevModeTesting() };
428
PrinterSettings printerSettings =
new
()
441
PrinterSettings printerSettings =
new
();
448
PrinterSettings printerSettings =
new
();
456
PrinterSettings printerSettings =
new
();
468
PrinterSettings printerSettings =
new
();
478
PrinterSettings printerSettings =
new
();
491
PrinterSettings printerSettings =
new
();
502
PrinterSettings printerSettings =
new
();
510
PrinterSettings printerSettings =
new
();
520
PrinterSettings printerSettings =
new
();
531
PrinterSettings printerSettings =
new
();
538
PrinterSettings printerSettings =
new
();
549
PrinterSettings printerSettings =
new
() { PrinterName = printerName, Copies = 3 };
550
PrinterSettings newPrinterSettings =
new
() { PrinterName = printerName, Copies = 6 };
565
PrinterSettings printerSettings =
new
() { PrinterName = candidate };
586
PrinterSettings printerSettings =
new
();
593
PrinterSettings printerSettings =
new
();
594
PrinterSettings newPrinterSettings =
new
();
603
PrinterSettings printerSettings =
new
();
System.Windows.Forms (2)
System\Windows\Forms\Printing\PrintDialog.cs (2)
79
_printerSettings = _printDocument is null ? new
PrinterSettings
() : _printDocument.PrinterSettings;
98
get => _printerSettings ??= new
PrinterSettings
();
System.Windows.Forms.Tests (1)
System\Windows\Forms\PageSetupDialogTests.cs (1)
305
yield 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)
17
public InvalidPrinterException(
PrinterSettings
settings) : base(GenerateMessage(settings))
21
private static string GenerateMessage(
PrinterSettings
settings)
System\Drawing\Printing\PageSettings.cs (3)
11
private
PrinterSettings
_printerSettings;
29
public PageSettings(
PrinterSettings
printerSettings)
205
public
PrinterSettings
PrinterSettings
System\Drawing\Printing\PrintDocument.cs (2)
21
private
PrinterSettings
_printerSettings = new();
93
public
PrinterSettings
PrinterSettings
System\Drawing\Printing\PrinterSettings.cs (3)
37
/// Initializes a new instance of the <see cref='
PrinterSettings
'/> class.
435
PrinterSettings
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)
16
public static
PrinterSettings
.StringCollection InstalledPrinters { get; } =
PrinterSettings
.InstalledPrinters;
System\Drawing\Printing\PrintDocumentTests.cs (2)
111
Assert.IsAssignableFrom<
PrinterSettings
>(document.PrinterSettings);
113
PrinterSettings
printerSettings = new();
System\Drawing\Printing\PrinterSettingsTests.cs (60)
38
PrinterSettings
printerSettings = new();
45
PrinterSettings
printerSettings = new();
52
PrinterSettings
printerSettings = new();
61
PrinterSettings
printerSettings = new()
74
PrinterSettings
printerSettings = new();
81
PrinterSettings
printerSettings = new();
88
PrinterSettings
printerSettings = new()
99
PrinterSettings
printerSettings = new();
109
PrinterSettings
printerSettings = new()
124
PrinterSettings
printerSettings = new();
131
PrinterSettings
printerSettings = new();
141
PrinterSettings
printerSettings = new()
154
PrinterSettings
printerSettings = new();
167
PrinterSettings
printerSettings = new();
174
PrinterSettings
printerSettings = new();
181
PrinterSettings
printerSettings = new()
192
PrinterSettings
printerSettings = new();
200
PrinterSettings
printerSettings = new();
207
PrinterSettings
printerSettings = new();
217
PrinterSettings
printerSettings = new()
230
PrinterSettings
printerSettings = new();
237
PrinterSettings
printerSettings = new();
246
PrinterSettings
printerSettings = new()
259
PrinterSettings
printerSettings = new();
267
PrinterSettings
printerSettings = new()
278
PrinterSettings
printerSettings = new();
285
PrinterSettings
printerSettings = new();
292
PrinterSettings
printerSettings = new();
299
PrinterSettings
printerSettings = new();
310
PrinterSettings
printerSettings = new()
325
PrinterSettings
printerSettings = new();
333
PrinterSettings
printerSettings = new()
346
PrinterSettings
printerSettings = new()
357
PrinterSettings
printerSettings = new()
368
PrinterSettings
printerSettings = new();
382
PrinterSettings
printerSettings = new();
402
PrinterSettings
printerSettings = new();
410
PrinterSettings
printerSettings = new();
419
PrinterSettings
printerSettings = new() { PrinterName = GetNameOfTestPrinterSuitableForDevModeTesting() };
428
PrinterSettings
printerSettings = new()
441
PrinterSettings
printerSettings = new();
448
PrinterSettings
printerSettings = new();
449
PrinterSettings
clone = Assert.IsAssignableFrom<
PrinterSettings
>(printerSettings.Clone());
456
PrinterSettings
printerSettings = new();
468
PrinterSettings
printerSettings = new();
478
PrinterSettings
printerSettings = new();
491
PrinterSettings
printerSettings = new();
502
PrinterSettings
printerSettings = new();
510
PrinterSettings
printerSettings = new();
520
PrinterSettings
printerSettings = new();
531
PrinterSettings
printerSettings = new();
538
PrinterSettings
printerSettings = new();
549
PrinterSettings
printerSettings = new() { PrinterName = printerName, Copies = 3 };
550
PrinterSettings
newPrinterSettings = new() { PrinterName = printerName, Copies = 6 };
565
PrinterSettings
printerSettings = new() { PrinterName = candidate };
586
PrinterSettings
printerSettings = new();
593
PrinterSettings
printerSettings = new();
594
PrinterSettings
newPrinterSettings = new();
603
PrinterSettings
printerSettings = new();
System.Windows.Forms (10)
System\Windows\Forms\Printing\PageSetupDialog.cs (4)
22
private
PrinterSettings
? _printerSettings;
133
public
PrinterSettings
? PrinterSettings
240
PrinterSettings
? printerSettings)
327
PrinterSettings
printer = _printerSettings ?? _pageSettings.PrinterSettings;
System\Windows\Forms\Printing\PrintDialog.cs (5)
27
private
PrinterSettings
? _printerSettings;
68
/// <see cref="Drawing.Printing.
PrinterSettings
"/>.
88
/// Gets or sets the <see cref="Drawing.Printing.
PrinterSettings
"/> the dialog box will be modifying.
96
public
PrinterSettings
PrinterSettings
471
PrinterSettings
settings,
System\Windows\Forms\Printing\PrinterSettingsExtensions.cs (1)
20
internal static unsafe DevModeScope GetDevMode(
PrinterSettings
printerSettings)
System.Windows.Forms.Tests (2)
System\Windows\Forms\PageSetupDialogTests.cs (2)
310
public void PageSetupDialog_PrinterSettings_Set_GetReturnsExpected(
PrinterSettings
value)
327
public void PageSetupDialog_PrinterSettings_SetWithDocument_GetReturnsExpected(
PrinterSettings
value)