2 writes to dc
System.Drawing (2)
commonui\System\Drawing\Printing\PreviewPrintController.cs (2)
76dc = document.PrinterSettings.CreateInformationContext(modeHandle); 191dc = null;
14 references to dc
System.Drawing (14)
commonui\System\Drawing\Printing\PreviewPrintController.cs (14)
59Debug.Assert(dc == null && graphics == null, "PrintController methods called in the wrong order?"); 93Debug.Assert(dc != null && graphics == null, "PrintController methods called in the wrong order?"); 122Metafile metafile = new Metafile(dc.Hdc, new Rectangle(0,0, metafileSize.Width, metafileSize.Height), MetafileFrameUnit.GdiCompatible, EmfType.EmfPlusOnly); 134int dpiX = UnsafeNativeMethods.GetDeviceCaps(new HandleRef(dc, dc.Hdc), SafeNativeMethods.LOGPIXELSX); 135int dpiY = UnsafeNativeMethods.GetDeviceCaps(new HandleRef(dc, dc.Hdc), SafeNativeMethods.LOGPIXELSY); 136int hardMarginX_DU = UnsafeNativeMethods.GetDeviceCaps(new HandleRef(dc, dc.Hdc), SafeNativeMethods.PHYSICALOFFSETX); 137int hardMarginY_DU = UnsafeNativeMethods.GetDeviceCaps(new HandleRef(dc, dc.Hdc), SafeNativeMethods.PHYSICALOFFSETY); 167Debug.Assert(dc != null && graphics != null, "PrintController methods called in the wrong order?"); 185Debug.Assert(dc != null && graphics == null, "PrintController methods called in the wrong order?"); 190dc.Dispose();