63 instantiations of PrinterSettings
PresentationCore.Tests (1)
BinaryFormat\DataObjectTests.cs (1)
55
new System.Drawing.Printing.
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
() };
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)
2710
public InvalidPrinterException(System.Drawing.Printing.
PrinterSettings
settings) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
2746
public PageSettings(System.Drawing.Printing.
PrinterSettings
printerSettings) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
2757
public System.Drawing.Printing.
PrinterSettings
PrinterSettings { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
2977
public System.Drawing.Printing.
PrinterSettings
PrinterSettings { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
3017
public static System.Drawing.Printing.
PrinterSettings
.StringCollection InstalledPrinters { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
3025
public System.Drawing.Printing.
PrinterSettings
.PaperSizeCollection PaperSizes { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
3026
public System.Drawing.Printing.
PrinterSettings
.PaperSourceCollection PaperSources { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
3028
public System.Drawing.Printing.
PrinterSettings
.PrinterResolutionCollection PrinterResolutions { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
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)