52 references to PrinterSettings
System.Windows.Forms (52)
System\Windows\Forms\Printing\PrintDialog.cs (52)
84? PrinterSettings.DefaultPageSettings 101if (value != PrinterSettings) 178flags |= (PRINTDLGEX_FLAGS)PrinterSettings.PrintRange; 195if (PrinterSettings.Collate) 247dialogSettings->nCopies = (ushort)PrinterSettings.Copies; 253? (HGLOBAL)PrinterSettings.GetHdevmode() 254: (HGLOBAL)PrinterSettings.GetHdevmode(PageSettings); 256dialogSettings->hDevNames = (HGLOBAL)PrinterSettings.GetHdevnames(); 272if (PrinterSettings.FromPage < PrinterSettings.MinimumPage 273|| PrinterSettings.FromPage > PrinterSettings.MaximumPage) 278if (PrinterSettings.ToPage < PrinterSettings.MinimumPage 279|| PrinterSettings.ToPage > PrinterSettings.MaximumPage) 284if (PrinterSettings.ToPage < PrinterSettings.FromPage) 289dialogSettings->nFromPage = (ushort)PrinterSettings.FromPage; 290dialogSettings->nToPage = (ushort)PrinterSettings.ToPage; 291dialogSettings->nMinPage = (ushort)PrinterSettings.MinimumPage; 292dialogSettings->nMaxPage = (ushort)PrinterSettings.MaximumPage; 316PrinterSettings, 320PrinterSettings.PrintToFile = PrintToFile; 324PrinterSettings.FromPage = dialogSettings->nFromPage; 325PrinterSettings.ToPage = dialogSettings->nToPage; 333PrinterSettings.Copies = (short)dialogSettings->nCopies; 334PrinterSettings.Collate = dialogSettings->Flags.HasFlag(PRINTDLGEX_FLAGS.PD_COLLATE); 360nCopies = (uint)PrinterSettings.Copies, 367? (HGLOBAL)PrinterSettings.GetHdevmode() 368: (HGLOBAL)PrinterSettings.GetHdevmode(PageSettings); 370dialogSettings.hDevNames = (HGLOBAL)PrinterSettings.GetHdevnames(); 386if (PrinterSettings.FromPage < PrinterSettings.MinimumPage 387|| PrinterSettings.FromPage > PrinterSettings.MaximumPage) 392if (PrinterSettings.ToPage < PrinterSettings.MinimumPage 393|| PrinterSettings.ToPage > PrinterSettings.MaximumPage) 398if (PrinterSettings.ToPage < PrinterSettings.FromPage) 403pageRange.nFromPage = (uint)PrinterSettings.FromPage; 404pageRange.nToPage = (uint)PrinterSettings.ToPage; 407dialogSettings.nMinPage = (uint)PrinterSettings.MinimumPage; 408dialogSettings.nMaxPage = (uint)PrinterSettings.MaximumPage; 426PrinterSettings, 430PrinterSettings.PrintToFile = PrintToFile; 433PrinterSettings.FromPage = (int)pageRange.nFromPage; 434PrinterSettings.ToPage = (int)pageRange.nToPage; 442PrinterSettings.Copies = (short)dialogSettings.nCopies; 443PrinterSettings.Collate = dialogSettings.Flags.HasFlag(PRINTDLGEX_FLAGS.PD_COLLATE);