4 writes to DefaultPageSettings
System.Drawing.Common.Tests (4)
System\Drawing\Printing\PrintDocumentTests.cs (4)
51
document.
DefaultPageSettings
= null;
54
document.
DefaultPageSettings
= _pageSettings;
62
document.
DefaultPageSettings
= null;
120
document.
DefaultPageSettings
= _pageSettings;
22 references to DefaultPageSettings
System.Drawing.Common (9)
System\Drawing\Printing\DefaultPrintController.cs (2)
102
_graphics.TranslateTransform(document.
DefaultPageSettings
.Margins.Left, document.
DefaultPageSettings
.Margins.Top);
System\Drawing\Printing\PreviewPrintController.cs (2)
89
_graphics.TranslateTransform(document.
DefaultPageSettings
.Margins.Left, document.
DefaultPageSettings
.Margins.Top);
System\Drawing\Printing\PrintController.cs (3)
101
QueryPageSettingsEventArgs queryEvent = new((PageSettings)document.
DefaultPageSettings
.Clone());
138
PageSettings documentPageSettings = (PageSettings)document.
DefaultPageSettings
.Clone();
218
_modeHandle = (SafeDeviceModeHandle)document.PrinterSettings.GetHdevmode(document.
DefaultPageSettings
);
System\Drawing\Printing\PrintPreviewGraphics.cs (2)
46
graphics.TranslateTransform(_printDocument.
DefaultPageSettings
.Margins.Left, _printDocument.
DefaultPageSettings
.Margins.Top);
System.Drawing.Common.Tests (5)
System\Drawing\Printing\PrintDocumentTests.cs (5)
44
AssertDefaultPageSettings(document.
DefaultPageSettings
);
52
Assert.IsAssignableFrom<PageSettings>(document.
DefaultPageSettings
);
63
AssertDefaultPageSettings(document.
DefaultPageSettings
);
118
document.
DefaultPageSettings
.PaperSize.Kind);
124
document.
DefaultPageSettings
.PaperSize.Kind);
System.Windows.Forms (2)
System\Windows\Forms\Printing\PageSetupDialog.cs (1)
79
_pageSettings = _printDocument.
DefaultPageSettings
;
System\Windows\Forms\Printing\PrintDialog.cs (1)
85
: Document.
DefaultPageSettings
;
System.Windows.Forms.Tests (6)
System\Windows\Forms\PageSetupDialogTests.cs (6)
123
Assert.Same(value?.
DefaultPageSettings
, dialog.PageSettings);
129
Assert.Same(value?.
DefaultPageSettings
, dialog.PageSettings);
144
Assert.Same(value.
DefaultPageSettings
, dialog.PageSettings);
150
Assert.Same(value.
DefaultPageSettings
, dialog.PageSettings);
165
Assert.Same(original.
DefaultPageSettings
, dialog.PageSettings);
171
Assert.Same(original.
DefaultPageSettings
, dialog.PageSettings);