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