21 references to DefaultPageSettings
System.Drawing.Common (5)
System\Drawing\Printing\PrintDocument.cs (1)
104_defaultPageSettings = _printerSettings.DefaultPageSettings;
System\Drawing\Printing\PrinterSettings.cs (4)
337using var hdc = CreateInformationContext(DefaultPageSettings); 379using var hdc = CreateInformationContext(DefaultPageSettings); 490public Graphics CreateMeasurementGraphics() => CreateMeasurementGraphics(DefaultPageSettings); 589using var hdc = CreateInformationContext(DefaultPageSettings);
System.Drawing.Common.Tests (15)
System\Drawing\Printing\PrintDocumentTests.cs (1)
117document.PrinterSettings.DefaultPageSettings.PaperSize.Kind,
System\Drawing\Printing\PrinterSettingsTests.cs (14)
39Assert.NotNull(printerSettings.DefaultPageSettings); 100Assert.NotNull(printerSettings.DefaultPageSettings); 459Assert.Equal((double)printerSettings.DefaultPageSettings.Bounds.X, graphic.VisibleClipBounds.X, 0); 460Assert.Equal((double)printerSettings.DefaultPageSettings.Bounds.Y, graphic.VisibleClipBounds.Y, 0); 461Assert.Equal((double)printerSettings.DefaultPageSettings.PrintableArea.Height, graphic.VisibleClipBounds.Height, 0); 462Assert.Equal((double)printerSettings.DefaultPageSettings.PrintableArea.Width, graphic.VisibleClipBounds.Width, 0); 471Assert.Equal((double)printerSettings.DefaultPageSettings.PrintableArea.Height, graphic.VisibleClipBounds.Height, 0); 472Assert.Equal((double)printerSettings.DefaultPageSettings.PrintableArea.Width, graphic.VisibleClipBounds.Width, 0); 482Assert.Equal((double)printerSettings.DefaultPageSettings.Bounds.X, graphic.VisibleClipBounds.X, 0); 483Assert.Equal((double)printerSettings.DefaultPageSettings.Bounds.Y, graphic.VisibleClipBounds.Y, 0); 484Assert.Equal((double)printerSettings.DefaultPageSettings.PrintableArea.Height, graphic.VisibleClipBounds.Height, 0); 485Assert.Equal((double)printerSettings.DefaultPageSettings.PrintableArea.Width, graphic.VisibleClipBounds.Width, 0); 495Assert.Equal((double)printerSettings.DefaultPageSettings.PrintableArea.Height, graphic.VisibleClipBounds.Height, 0); 496Assert.Equal((double)printerSettings.DefaultPageSettings.PrintableArea.Width, graphic.VisibleClipBounds.Width, 0);
System.Windows.Forms (1)
System\Windows\Forms\Printing\PrintDialog.cs (1)
84? PrinterSettings.DefaultPageSettings