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