8 writes to PrinterName
System.Drawing.Common.Tests (8)
System\Drawing\Printing\PrintDocumentTests.cs (1)
175
document.PrinterSettings.
PrinterName
= GetPdfPrinterName();
System\Drawing\Printing\PrinterSettingsTests.cs (7)
183
PrinterName
= "Invalid Printer"
348
PrinterName
= printerName
359
PrinterName
= null
419
PrinterSettings printerSettings = new() {
PrinterName
= GetNameOfTestPrinterSuitableForDevModeTesting() };
549
PrinterSettings printerSettings = new() {
PrinterName
= printerName, Copies = 3 };
550
PrinterSettings newPrinterSettings = new() {
PrinterName
= printerName, Copies = 6 };
565
PrinterSettings printerSettings = new() {
PrinterName
= candidate };
17 references to PrinterName
System.Drawing.Common (10)
System\Drawing\Printing\InvalidPrinterException.cs (1)
31
return SR.Format(SR.InvalidPrinterException_InvalidPrinter, settings.
PrinterName
);
System\Drawing\Printing\PageSettings.cs (1)
323
fixed (char* n = _printerSettings.
PrinterName
)
System\Drawing\Printing\PrinterSettings.cs (8)
184
/// Gets a value indicating whether the <see cref='
PrinterName
'/> property designates the default printer.
194
/// Gets a value indicating whether the <see cref='
PrinterName
'/> property designates a valid printer.
529
=> FastDeviceCapabilities(capability,
PrinterName
, output, defaultValue);
724
string printerName =
PrinterName
;
843
string printerName =
PrinterName
;
897
string printerName =
PrinterName
;
941
string printerName =
PrinterName
;
1047
$"[PrinterSettings {
PrinterName
} Copies={Copies} Collate={Collate} Duplex={Duplex} FromPage={FromPage} LandscapeAngle={LandscapeAngle} MaximumCopies={MaximumCopies} OutputPort={OutputPort} ToPage={ToPage}]";
System.Drawing.Common.Tests (5)
System\Drawing\Printing\PrinterSettingsTests.cs (5)
351
Assert.Equal(printerName, printerSettings.
PrinterName
);
362
Assert.NotNull(printerSettings.
PrinterName
);
597
Assert.Equal(newPrinterSettings.
PrinterName
, printerSettings.
PrinterName
);
605
+ printerSettings.
PrinterName
System.Windows.Forms (2)
System\Windows\Forms\Printing\PrinterSettingsExtensions.cs (2)
24
fixed (char* n = printerSettings.
PrinterName
)
35
fixed (char* n = printerSettings.
PrinterName
)