1 write to modeHandle
System.Drawing (1)
commonui\System\Drawing\Printing\PrintController.cs (1)
282modeHandle = (SafeDeviceModeHandle)document.PrinterSettings.GetHdevmode(document.DefaultPageSettings);
11 references to modeHandle
System.Drawing (11)
commonui\System\Drawing\Printing\DefaultPrintController.cs (4)
60dc = document.PrinterSettings.CreateDeviceContext(modeHandle); 101e.PageSettings.CopyToHdevmode(modeHandle); 102IntPtr modePointer = SafeNativeMethods.GlobalLock(new HandleRef(this, modeHandle)); 108SafeNativeMethods.GlobalUnlock(new HandleRef(this, modeHandle));
commonui\System\Drawing\Printing\PreviewPrintController.cs (2)
76dc = document.PrinterSettings.CreateInformationContext(modeHandle); 104e.PageSettings.CopyToHdevmode(modeHandle);
commonui\System\Drawing\Printing\PrintController.cs (5)
260Debug.Assert((modeHandle != null), "modeHandle is null. Someone must have forgot to call base.StartPrint"); 263Rectangle pageBounds = pageSettings.GetBounds(modeHandle); 310Debug.Assert((modeHandle != null), "modeHandle is null. Someone must have forgot to call base.StartPrint"); 311if (modeHandle != null) { 312modeHandle.Close();