2 writes to graphics
System.Drawing (2)
commonui\System\Drawing\Printing\DefaultPrintController.cs (2)
118graphics = Graphics.FromHdcInternal( dc.Hdc ); 167graphics = null;
9 references to graphics
System.Drawing (9)
commonui\System\Drawing\Printing\DefaultPrintController.cs (9)
50Debug.Assert(dc == null && graphics == null, "PrintController methods called in the wrong order?"); 91Debug.Assert(dc != null && graphics == null, "PrintController methods called in the wrong order?"); 120if (graphics != null && document.OriginAtMargins) { 132graphics.TranslateTransform(-hardMarginX, -hardMarginY); 133graphics.TranslateTransform(document.DefaultPageSettings.Margins.Left, document.DefaultPageSettings.Margins.Top); 140return graphics; 152Debug.Assert(dc != null && graphics != null, "PrintController methods called in the wrong order?"); 166graphics.Dispose(); // Dispose of GDI+ Graphics; keep the DC 181Debug.Assert(dc != null && graphics == null, "PrintController methods called in the wrong order?");