12 instantiations of PageSettings
PresentationCore.Tests (1)
BinaryFormat\DataObjectTests.cs (1)
63new System.Drawing.Printing.PageSettings(),
System.Drawing.Common (4)
System\Drawing\Printing\PrintDocument.cs (2)
32public PrintDocument() => _defaultPageSettings = new PageSettings(_printerSettings); 45_defaultPageSettings = value ?? new PageSettings();
System\Drawing\Printing\PrinterSettings.cs (1)
41_defaultPageSettings = new PageSettings(this);
System\Drawing\Printing\QueryPageSettingsEventArgs.cs (1)
30value ??= new PageSettings();
System.Drawing.Common.Tests (6)
System\Drawing\Printing\PageSettingsTests.cs (1)
37PageSettings ps = new()
System\Drawing\Printing\PreviewPrintControllerTests.cs (1)
22PrintPageEventArgs printEventArgs = new(null, Rectangle.Empty, Rectangle.Empty, new PageSettings());
System\Drawing\Printing\PrintDocumentTests.cs (1)
30private readonly PageSettings _pageSettings = new()
System\Drawing\Printing\PrinterSettingsTests.cs (3)
479PageSettings pageSettings = new(); 492PageSettings pageSettings = new(); 521PageSettings pageSettings = new();
System.Windows.Forms.Tests (1)
System\Windows\Forms\PageSetupDialogTests.cs (1)
264yield return new object[] { new PageSettings() };
40 references to PageSettings
System.Drawing (1)
System.Drawing.cs (1)
112[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Printing.PageSettings))]
System.Drawing.Common (23)
System\Drawing\Printing\PageSettings.cs (5)
20/// Initializes a new instance of the <see cref='PageSettings'/> class using the default printer. 27/// Initializes a new instance of the <see cref='PageSettings'/> class using the specified printer. 216PageSettings result = (PageSettings)MemberwiseClone(); 499$"[{nameof(PageSettings)}: Color={Color}, Landscape={Landscape}, Margins={Margins}, PaperSize={PaperSize}, PaperSource={PaperSource}, PrinterResolution={PrinterResolution}]";
System\Drawing\Printing\PrintController.cs (4)
101QueryPageSettingsEventArgs queryEvent = new((PageSettings)document.DefaultPageSettings.Clone()); 138PageSettings documentPageSettings = (PageSettings)document.DefaultPageSettings.Clone(); 198private PrintPageEventArgs CreatePrintPageEvent(PageSettings pageSettings)
System\Drawing\Printing\PrintDocument.cs (2)
22private PageSettings _defaultPageSettings; 40public PageSettings DefaultPageSettings
System\Drawing\Printing\PrinterSettings.cs (7)
26private readonly PageSettings _defaultPageSettings; 80public PageSettings DefaultPageSettings => _defaultPageSettings; 440internal CreateDcScope CreateDeviceContext(PageSettings pageSettings) 465internal CreateDcScope CreateInformationContext(PageSettings pageSettings) 505public Graphics CreateMeasurementGraphics(PageSettings pageSettings) 515public Graphics CreateMeasurementGraphics(PageSettings pageSettings, bool honorOriginAtMargins) 708public IntPtr GetHdevmode(PageSettings pageSettings)
System\Drawing\Printing\PrintPageEventArgs.cs (2)
14public PrintPageEventArgs(Graphics? graphics, Rectangle marginBounds, Rectangle pageBounds, PageSettings pageSettings) 50public PageSettings PageSettings { get; }
System\Drawing\Printing\QueryPageSettingsEventArgs.cs (3)
11private PageSettings _pageSettings; 16public QueryPageSettingsEventArgs(PageSettings pageSettings) : base() => _pageSettings = pageSettings; 21public PageSettings PageSettings
System.Drawing.Common.Tests (9)
System\Drawing\Printing\PageSettingsTests.cs (3)
37PageSettings ps = new() 44PageSettings clone = (PageSettings)ps.Clone();
System\Drawing\Printing\PrintDocumentTests.cs (3)
30private readonly PageSettings _pageSettings = new() 52Assert.IsAssignableFrom<PageSettings>(document.DefaultPageSettings); 232private void AssertDefaultPageSettings(PageSettings pageSettings)
System\Drawing\Printing\PrinterSettingsTests.cs (3)
479PageSettings pageSettings = new(); 492PageSettings pageSettings = new(); 521PageSettings pageSettings = new();
System.Windows.Forms (5)
System\Windows\Forms\Printing\PageSetupDialog.cs (3)
21private PageSettings? _pageSettings; 115public PageSettings? PageSettings 239PageSettings pageSettings,
System\Windows\Forms\Printing\PrintDialog.cs (2)
83private PageSettings PageSettings => Document is null 472PageSettings? pageSettings)
System.Windows.Forms.Tests (2)
System\Windows\Forms\PageSetupDialogTests.cs (2)
269public void PageSetupDialog_PageSettings_Set_GetReturnsExpected(PageSettings value) 286public void PageSetupDialog_PageSettings_SetWithDocument_GetReturnsExpected(PageSettings value)