4 writes to ToPage
System.Drawing.Common.Tests (2)
System\Drawing\Printing\PrinterSettingsTests.cs (2)
430
ToPage
= toPage
442
AssertExtensions.Throws<ArgumentException>(null, () => printerSettings.
ToPage
= toPage);
System.Windows.Forms (2)
System\Windows\Forms\Printing\PrintDialog.cs (2)
325
PrinterSettings.
ToPage
= dialogSettings->nToPage;
434
PrinterSettings.
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)
433
Assert.Equal(toPage, printerSettings.
ToPage
);
613
+ " ToPage=" + printerSettings.
ToPage
.ToString(CultureInfo.InvariantCulture)
System.Windows.Forms (8)
System\Windows\Forms\Printing\PrintDialog.cs (8)
278
if (PrinterSettings.
ToPage
< PrinterSettings.MinimumPage
279
|| PrinterSettings.
ToPage
> PrinterSettings.MaximumPage)
284
if (PrinterSettings.
ToPage
< PrinterSettings.FromPage)
290
dialogSettings->nToPage = (ushort)PrinterSettings.
ToPage
;
392
if (PrinterSettings.
ToPage
< PrinterSettings.MinimumPage
393
|| PrinterSettings.
ToPage
> PrinterSettings.MaximumPage)
398
if (PrinterSettings.
ToPage
< PrinterSettings.FromPage)
404
pageRange.nToPage = (uint)PrinterSettings.
ToPage
;