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