8 writes to PrinterName
System.Drawing.Common.Tests (8)
System\Drawing\Printing\PrintDocumentTests.cs (1)
175document.PrinterSettings.PrinterName = GetPdfPrinterName();
System\Drawing\Printing\PrinterSettingsTests.cs (7)
183PrinterName = "Invalid Printer" 348PrinterName = printerName 359PrinterName = null 419PrinterSettings printerSettings = new() { PrinterName = GetNameOfTestPrinterSuitableForDevModeTesting() }; 549PrinterSettings printerSettings = new() { PrinterName = printerName, Copies = 3 }; 550PrinterSettings newPrinterSettings = new() { PrinterName = printerName, Copies = 6 }; 565PrinterSettings printerSettings = new() { PrinterName = candidate };
17 references to PrinterName
System.Drawing.Common (10)
System\Drawing\Printing\InvalidPrinterException.cs (1)
31return SR.Format(SR.InvalidPrinterException_InvalidPrinter, settings.PrinterName);
System\Drawing\Printing\PageSettings.cs (1)
323fixed (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); 724string printerName = PrinterName; 843string printerName = PrinterName; 897string printerName = PrinterName; 941string 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)
351Assert.Equal(printerName, printerSettings.PrinterName); 362Assert.NotNull(printerSettings.PrinterName); 597Assert.Equal(newPrinterSettings.PrinterName, printerSettings.PrinterName); 605+ printerSettings.PrinterName
System.Windows.Forms (2)
System\Windows\Forms\Printing\PrinterSettingsExtensions.cs (2)
24fixed (char* n = printerSettings.PrinterName) 35fixed (char* n = printerSettings.PrinterName)