4 writes to ToPage
System.Drawing.Common.Tests (2)
System\Drawing\Printing\PrinterSettingsTests.cs (2)
430ToPage = toPage 442AssertExtensions.Throws<ArgumentException>(null, () => printerSettings.ToPage = toPage);
System.Windows.Forms (2)
System\Windows\Forms\Printing\PrintDialog.cs (2)
325PrinterSettings.ToPage = dialogSettings->nToPage; 434PrinterSettings.ToPage = (int)pageRange.nToPage;
14 references to ToPage
System.Drawing.Common (4)
System\Drawing\Printing\PrinterSettings.cs (3)
209/// Gets or sets the highest <see cref='FromPage'/> or <see cref='ToPage'/> which may be selected in a print dialog box. 226/// Gets or sets the lowest <see cref='FromPage'/> or <see cref='ToPage'/> which may be selected in a print dialog box. 1047$"[PrinterSettings {PrinterName} Copies={Copies} Collate={Collate} Duplex={Duplex} FromPage={FromPage} LandscapeAngle={LandscapeAngle} MaximumCopies={MaximumCopies} OutputPort={OutputPort} ToPage={ToPage}]";
System\Drawing\Printing\PrintRange.cs (1)
19/// The pages between <see cref='PrinterSettings.FromPage'/> and <see cref='PrinterSettings.ToPage'/> are printed.
System.Drawing.Common.Tests (2)
System\Drawing\Printing\PrinterSettingsTests.cs (2)
433Assert.Equal(toPage, printerSettings.ToPage); 613+ " ToPage=" + printerSettings.ToPage.ToString(CultureInfo.InvariantCulture)
System.Windows.Forms (8)
System\Windows\Forms\Printing\PrintDialog.cs (8)
278if (PrinterSettings.ToPage < PrinterSettings.MinimumPage 279|| PrinterSettings.ToPage > PrinterSettings.MaximumPage) 284if (PrinterSettings.ToPage < PrinterSettings.FromPage) 290dialogSettings->nToPage = (ushort)PrinterSettings.ToPage; 392if (PrinterSettings.ToPage < PrinterSettings.MinimumPage 393|| PrinterSettings.ToPage > PrinterSettings.MaximumPage) 398if (PrinterSettings.ToPage < PrinterSettings.FromPage) 404pageRange.nToPage = (uint)PrinterSettings.ToPage;