4 writes to DefaultPageSettings
System.Drawing.Common.Tests (4)
System\Drawing\Printing\PrintDocumentTests.cs (4)
51document.DefaultPageSettings = null; 54document.DefaultPageSettings = _pageSettings; 62document.DefaultPageSettings = null; 120document.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)
101QueryPageSettingsEventArgs queryEvent = new((PageSettings)document.DefaultPageSettings.Clone()); 138PageSettings documentPageSettings = (PageSettings)document.DefaultPageSettings.Clone(); 218_modeHandle = (SafeDeviceModeHandle)document.PrinterSettings.GetHdevmode(document.DefaultPageSettings);
System\Drawing\Printing\PrintPreviewGraphics.cs (2)
46graphics.TranslateTransform(_printDocument.DefaultPageSettings.Margins.Left, _printDocument.DefaultPageSettings.Margins.Top);
System.Drawing.Common.Tests (5)
System\Drawing\Printing\PrintDocumentTests.cs (5)
44AssertDefaultPageSettings(document.DefaultPageSettings); 52Assert.IsAssignableFrom<PageSettings>(document.DefaultPageSettings); 63AssertDefaultPageSettings(document.DefaultPageSettings); 118document.DefaultPageSettings.PaperSize.Kind); 124document.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)
123Assert.Same(value?.DefaultPageSettings, dialog.PageSettings); 129Assert.Same(value?.DefaultPageSettings, dialog.PageSettings); 144Assert.Same(value.DefaultPageSettings, dialog.PageSettings); 150Assert.Same(value.DefaultPageSettings, dialog.PageSettings); 165Assert.Same(original.DefaultPageSettings, dialog.PageSettings); 171Assert.Same(original.DefaultPageSettings, dialog.PageSettings);